DependencyInjectionUsingClassGeneratorBackedInstantiatorTest.groovy

Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Move some classes around to bust up a package cycle.

    • -157
    • +0
    ./DependencyInjectionUsingClassGeneratorBackedInstantiatorTest.groovy
  1. … 60 more files in changeset.
Allow managed factories to be recreatable in worker processes

    • -2
    • +1
    ./DependencyInjectionUsingClassGeneratorBackedInstantiatorTest.groovy
  1. … 26 more files in changeset.
Move managed factories to a registry

    • -1
    • +2
    ./DependencyInjectionUsingClassGeneratorBackedInstantiatorTest.groovy
  1. … 48 more files in changeset.
Copy the caching strategy of `NamedObjectInstantiator` to `CrossBuildInMemoryCacheFactory` so that it can be reused, and use it to cache the details of generated classes.

    • -1
    • +1
    ./DependencyInjectionUsingClassGeneratorBackedInstantiatorTest.groovy
  1. … 15 more files in changeset.
Defer service lookups until they are required when creating a decorated object instance.

    • -11
    • +13
    ./DependencyInjectionUsingClassGeneratorBackedInstantiatorTest.groovy
  1. … 10 more files in changeset.
Use lenient instantiator for extensible instances

    • -0
    • +2
    ./DependencyInjectionUsingClassGeneratorBackedInstantiatorTest.groovy
  1. … 2 more files in changeset.
Rename injectedServicesByAnnotation

to annotationsTriggeringServiceInjection.

    • -6
    • +6
    ./DependencyInjectionUsingClassGeneratorBackedInstantiatorTest.groovy
  1. … 7 more files in changeset.
Inject primary input dependencies as Iterable<File>

instead of using the container type `ArtifactTransformDependencies`.

The container type now also has been removed from the public API.

    • -6
    • +6
    ./DependencyInjectionUsingClassGeneratorBackedInstantiatorTest.groovy
  1. … 22 more files in changeset.
Add a mechanism to register injection annotations globally and use this to validate that annotations are not attached to types where they are not supported. For example, fail when `@Workspace` is attached to a task property getter.

    • -1
    • +1
    ./DependencyInjectionUsingClassGeneratorBackedInstantiatorTest.groovy
  1. … 20 more files in changeset.
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).

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

    • -0
    • +153
    ./DependencyInjectionUsingClassGeneratorBackedInstantiatorTest.groovy
  1. … 90 more files in changeset.