Package com.blackbuild.klum.ast.runtime
Class KlumFactory.Unkeyed<T>
java.lang.Object
com.blackbuild.klum.ast.runtime.KlumFactory<T>
com.blackbuild.klum.ast.runtime.KlumFactory.Unkeyed<T>
- Type Parameters:
T- The type of the model.
- Enclosing class:
- KlumFactory<T>
Factory for unkeyed models.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.blackbuild.klum.ast.runtime.KlumFactory
KlumFactory.BuilderFactory<T,B extends KlumBuilder<T>>, KlumFactory.BuilderFactoryProvider<T, B extends KlumBuilder<T>>, KlumFactory.Keyed<T>, KlumFactory.KeyedBuilderFactory<T, B extends KlumBuilder<T>>, KlumFactory.Unkeyed<T>, KlumFactory.UnkeyedBuilderFactory<T, B extends KlumBuilder<T>> -
Field Summary
Fields inherited from class com.blackbuild.klum.ast.runtime.KlumFactory
type -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the active-session factory used to create owned child Builders.Creates a new instance of the model and then applying the given text as configuration.From(String configuration, ClassLoader loader) Creates a new instance of the model and then applying the given text as configuration.One()Creates a new instance of the model applying any configuration (apart from 'postCreate' and 'postApply' methods and any active templates).With()Deprecated, for removal: This API element is subject to removal in a future version.With(groovy.lang.Closure<?> configuration) Creates a new instance of the model applying the given configuration closure.Creates a new instance of the model applying the given configuration map.Creates a new instance of the model applying the given configuration map and closure.Methods inherited from class com.blackbuild.klum.ast.runtime.KlumFactory
From, From, From, From, From, From, From, From, From, FromClasspath, FromClasspath, FromMap, getModelType
-
Constructor Details
-
Unkeyed
-
-
Method Details
-
AsBuilder
Description copied from class:KlumFactoryReturns the active-session factory used to create owned child Builders.- Overrides:
AsBuilderin classKlumFactory<T>
-
With
Deprecated, for removal: This API element is subject to removal in a future version.UseOne()instead.Convenience methods to allow simply replacing 'X.create' with 'X.Create.With' in scripts, without checking for arguments. This means that empty create calls like 'X.create()' will correctly work afterward. -
One
Creates a new instance of the model applying any configuration (apart from 'postCreate' and 'postApply' methods and any active templates).- Returns:
- The instantiated object.
-
With
Creates a new instance of the model applying the given configuration map and closure.- Parameters:
configMap- The configuration map to apply to the model.configuration- The configuration closure to apply to the model.- Returns:
- The instantiated object.
-
With
Creates a new instance of the model applying the given configuration closure.- Parameters:
configuration- The configuration closure to apply to the model.- Returns:
- The instantiated object.
-
With
Creates a new instance of the model applying the given configuration map.- Parameters:
configMap- The configuration map to apply to the model.- Returns:
- The instantiated object.
-
From
Creates a new instance of the model and then applying the given text as configuration.- Parameters:
configuration- the configuration text to apply to the model.- Returns:
- The instantiated object.
-
From
Creates a new instance of the model and then applying the given text as configuration.- Parameters:
configuration- the configuration text to apply to the model.loader- The classloader used to compile the configuration text.- Returns:
- The instantiated object.
-
One()instead.