T
- Entity typepublic interface EntityBuilder<T>
UnitOfWork.newEntityBuilder(Class)
and allows the client
to provide additional settings before instantiating the Composite.
After calling newInstance() the builder becomes invalid, and may not be called again.Modifier and Type | Method and Description |
---|---|
T |
instance()
Get a representation of the state for the new Composite.
|
<K> K |
instanceFor(Class<K> mixinType)
Get a representation of the state of the given type for the new Composite.
|
T |
newInstance()
Create a new Entity instance.
|
T instance()
<K> K instanceFor(Class<K> mixinType)
K
- Mixin typemixinType
- the mixin which you want to provide state forT newInstance() throws ConstructionException, LifecycleException
ConstructionException
- thrown if it was not possible to instantiate the CompositeLifecycleException
- if the entity could not be created