public static class DefaultFactory.Setup<V> extends Object implements FactoriesSetup.FactorySetup<V>
FactoriesSetup.BuilderSetup<B,R>, FactoriesSetup.BuilderSetupBase<B,This extends FactoriesSetup.BuilderSetupBase<B,This>>, FactoriesSetup.BuilderValueSetup<B,R,T>, FactoriesSetup.FactorySetup<R>, FactoriesSetup.FactoryValueSetup<R,T>, FactoriesSetup.NewBuilder<R>, FactoriesSetup.NewFactory<R>, FactoriesSetup.ValueDeclaration<T,BuilderSetup>, FactoriesSetup.ValueSetupBase<B>| Constructor and Description |
|---|
Setup(FactoriesSetup factoriesSetup,
FactoryParent factories,
String key,
Class<V> clazz) |
Setup(FactoryParent factories,
String key,
Class<V> clazz) |
| Modifier and Type | Method and Description |
|---|---|
FactoriesSetup.FactorySetup<V> |
applyValues(BiFunction<? super V,? super ValueGenerator.ValueMap,? extends V> function)
Applies values and replaces the object under construction with the
function result.
|
FactoriesSetup.FactorySetup<V> |
assignValues(String key,
ValueSource<?> valueSource) |
FactoriesSetup |
factoriesSetup() |
DefaultFactory<V> |
getFactory() |
Class<V> |
getValueType()
Returns the type of values produced/contained by this instance.
|
FactoriesSetup.FactorySetup<V> |
include(String key,
Factory.Include<?> include) |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitadd, add, apply, apply, assign, newFactory, set, set, set, set, toFactoriesapply, assign, assign, assign, assign, assign, include, include, set, then, then, thenApply, thenApplyadd, add, add, add, add, newFactory, newFactory, newFactory, newFactorypublic Setup(FactoriesSetup factoriesSetup, FactoryParent factories, String key, Class<V> clazz)
public Setup(FactoryParent factories, String key, Class<V> clazz)
public DefaultFactory<V> getFactory()
public FactoriesSetup factoriesSetup()
factoriesSetup in interface FactoriesSetup.FactorySetup<V>public Class<V> getValueType()
Typednull if the type is unknown;
should never return a primitive type.getValueType in interface Typed<V>public FactoriesSetup.FactorySetup<V> applyValues(BiFunction<? super V,? super ValueGenerator.ValueMap,? extends V> function)
FactoriesSetup.BuilderSetupBaseapplyValues in interface FactoriesSetup.BuilderSetupBase<V,FactoriesSetup.FactorySetup<V>>public FactoriesSetup.FactorySetup<V> assignValues(String key, ValueSource<?> valueSource)
assignValues in interface FactoriesSetup.BuilderSetupBase<V,FactoriesSetup.FactorySetup<V>>assignValues in interface FactoriesSetup.ValueSetupBase<V>public FactoriesSetup.FactorySetup<V> include(String key, Factory.Include<?> include)
include in interface FactoriesSetup.BuilderSetupBase<V,FactoriesSetup.FactorySetup<V>>include in interface FactoriesSetup.ValueSetupBase<V>Copyright © 2019. All rights reserved.