DependencyInjectingServiceLoaderTest.groovy

Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Extract an interface out of `ServiceRegistry` to include only the pieces needed for injection by the instantiator infrastructure. This will evolve to allow different annotations to be handled differently, but for now it simply behaves the same way as before.

Use a custom implementation of this interface for artifact transform instantiation, to avoid the cost of setting up a full mutable registry (for now).

    • -0
    • +79
    ./DependencyInjectingServiceLoaderTest.groovy
  1. … 21 more files in changeset.
Move class generation and instantation infrastructure from core to modelCore project.

    • -78
    • +0
    ./DependencyInjectingServiceLoaderTest.groovy
  1. … 90 more files in changeset.
Use an empty Object[] const to call through from non-parameterized create() method (#4833)

Add `ServiceRegistry.find()` to query the existence of a service without throwing exceptions.

Update handling to disallow `null` constructor argument value sooner.

Add Javadoc describing behavior when receiving `null` constructor argument value.

Improve error messages when `DependencyInjectingInstantiator` fails to create an object.

    • -1
    • +1
    ./DependencyInjectingServiceLoaderTest.groovy
  1. … 11 more files in changeset.
Changed `InstantiatorFactory` into an interface, and introduced a couple more factory methods.

    • -5
    • +2
    ./DependencyInjectingServiceLoaderTest.groovy
  1. … 4 more files in changeset.
Replaced all direct usages of `DependencyInjectingInstantiator` with a global `InstantiatorFactory` service.

    • -3
    • +3
    ./DependencyInjectingServiceLoaderTest.groovy
  1. … 15 more files in changeset.
Replace `ServiceRegistry` by `@Inject` based DI on `ScriptPluginFactoryProvider` SPI

Step 1. introduce new method on SPI but don't call it just yet

See gradle/gradle-script-kotlin#87

    • -0
    • +81
    ./DependencyInjectingServiceLoaderTest.groovy
  1. … 4 more files in changeset.