|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface EntityBuilder<T>
EntityBuilders are used to instantiate EntityComposites. They can be acquired from
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.
Method Summary | ||
---|---|---|
T |
instance()
Get a representation of the state for the new Composite. |
|
|
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. |
Method Detail |
---|
T instance()
<K> K instanceFor(Class<K> mixinType)
mixinType
- the mixin which you want to provide state for
T newInstance() throws ConstructionException, LifecycleException
ConstructionException
- thrown if it was not possible to instantiate the Composite
LifecycleException
- if the entity could not be created
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |