|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TransientBuilder<T>
TransientBuilders are used to instantiate TransientComposites. They can be acquired from
TransientBuilderFactory.newTransientBuilder(Class)
and allows the client
to provide additional settings before instantiating the TransientComposite.
Method Summary | ||
---|---|---|
T |
newInstance()
Create a new Composite instance. |
|
T |
prototype()
Get a representation of the state for the new Composite. |
|
|
prototypeFor(Class<K> mixinType)
Get a representation of the state of the given type for the new Composite. |
|
TransientBuilder<T> |
use(Object... usedObjects)
Provide objects that can be injected into mixins that has the @Uses dependency injection annotation. |
Methods inherited from interface java.lang.Iterable |
---|
iterator |
Method Detail |
---|
TransientBuilder<T> use(Object... usedObjects)
usedObjects
- The objects that can be injected into mixins.
Uses
T prototype()
<K> K prototypeFor(Class<K> mixinType)
mixinType
- the mixin which you want to provide state for
T newInstance() throws ConstructionException
ConstructionException
- thrown if it was not possible to instantiate the Composite
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |