T
- Transient typepublic interface TransientBuilder<T>
TransientBuilderFactory.newTransientBuilder(Class)
and allows the client
to provide additional settings before instantiating the TransientComposite.Modifier and Type | Method and Description |
---|---|
T |
newInstance()
Create a new Composite instance.
|
T |
prototype()
Get a representation of the state for the new Composite.
|
<K> K |
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.
|
TransientBuilder<T> use(Object... usedObjects)
usedObjects
- The objects that can be injected into mixins.Uses
T prototype()
<K> K prototypeFor(Class<K> mixinType)
K
- Mixin typemixinType
- the mixin which you want to provide state forT newInstance() throws ConstructionException
ConstructionException
- thrown if it was not possible to instantiate the Composite