-
- All Implemented Interfaces:
-
org.gradle.api.NamedDomainObjectFactory
public final class GradleKpmFragmentFactory<T extends GradleKpmFragment> implements NamedDomainObjectFactory<T>
Factory used by GradleKpmModule to polymorphic-ally create fragments/variants. Fragments are created in two stages with this factory:
FragmentInstantiator: An Instantiator (unlike something called a 'Factory') will just provide a new instance. All objects referenced from the Fragment shall be already created and accessing them should be safe, whilst some additional configuration still hase to be done in the configuration step.
FragmentConfigurator: After the fragment is instantiated, additional configuration (depending on the fragment instance) can be done. Typical configurations are:
Further setting up attributes of configurations (based upon the fragment itself)
Setting up additional Gradle tasks
Setting up publication
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interface
GradleKpmFragmentFactory.FragmentInstantiator
public interface
GradleKpmFragmentFactory.FragmentConfigurator
-
Constructor Summary
Constructors Constructor Description GradleKpmFragmentFactory(GradleKpmFragmentFactory.FragmentInstantiator<T> fragmentInstantiator, GradleKpmFragmentFactory.FragmentConfigurator<T> fragmentConfigurator)
-
Method Summary
-
-
Constructor Detail
-
GradleKpmFragmentFactory
GradleKpmFragmentFactory(GradleKpmFragmentFactory.FragmentInstantiator<T> fragmentInstantiator, GradleKpmFragmentFactory.FragmentConfigurator<T> fragmentConfigurator)
-
-
-
-