# ManagedType

@Incubating
@Documented
@Retention(value = RetentionPolicy.RUNTIME)
annotation class ManagedType(source)

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"))

Content copied to clipboard

#### Since

9.0.0

## Functions

annotationType
Link copied to clipboard
abstract fun annotationType(): Class<out Annotation>
equals
Link copied to clipboard
abstract fun equals(p: Any): Boolean
hashCode
Link copied to clipboard
abstract fun hashCode(): Int
toString
Link copied to clipboard
abstract fun toString(): String