Package org.gradle.api.model

# Annotation Type ManagedType

@Incubating @Documented @Retention(RUNTIME) public @interface ManagedType
Marks types that can be instantiated by Gradle via the managed object infrastructure.

Types annotated with this annotation will be automatically instantiated by Gradle when constructing managed objects. See the below example:

     interface MyObject {
         ConfigurableFileCollection getFiles();
         RegularFileProperty getProperty();
     }

     def instance = objects.newInstance(MyObject)
     instance.files.from(file("foo.txt"))
     instance.property.set(file("bar.txt"))

Since:
  9.0.0