Package 

Class ObjectFactory


  • 
    public final class ObjectFactory
    
                        

    Provides factory methods for property objects for most common cases.

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private final ProjectLayout layout
      private final ObjectFactory factory
    • Constructor Summary

      Constructors 
      Constructor Description
      ObjectFactory(Project project)
    • Method Summary

      Modifier and Type Method Description
      final <T extends Any> Provider<T> provider(Function0<T> value)
      final <T extends Any> Property<T> typed(Function1<Property<T>, Unit> options)
      final <T extends Any> ListProperty<T> list(Function1<ListProperty<T>, Unit> options)
      final <K extends Any, V extends Any> MapProperty<K, V> map(Function1<MapProperty<K, V>, Unit> options)
      final RegularFileProperty file(Function1<RegularFileProperty, Unit> options)
      final ConfigurableFileCollection files(Function1<ConfigurableFileCollection, Unit> options)
      final DirectoryProperty dir(Function1<DirectoryProperty, Unit> options)
      final Property<String> string(Function1<Property<String>, Unit> options)
      final ListProperty<String> strings(Function1<ListProperty<String>, Unit> options)
      final Property<Integer> int(Function1<Property<Integer>, Unit> options)
      final Property<Long> long(Function1<Property<Long>, Unit> options)
      final Property<Boolean> boolean(Function1<Property<Boolean>, Unit> options)
      final RegularFileProperty projectFile(String path)
      final DirectoryProperty projectDir(String path)
      final RegularFileProperty buildFile(String path)
      final DirectoryProperty buildDir(String path)
      final DirectoryProperty relativeDir(DirectoryProperty dir, String path)
      final RegularFileProperty relativeFile(DirectoryProperty dir, String path)
      final ProjectLayout getLayout()
      final ObjectFactory getFactory()
      • Methods inherited from class com.cognifide.gradle.common.build.ObjectFactory

        equals, hashCode, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait