public interface TransientBuilderFactory
Modifier and Type | Method and Description |
---|---|
<T> T |
newTransient(Class<T> mixinType,
Object... uses)
Instantiate a TransientComposite of the given type.
|
<T> TransientBuilder<T> |
newTransientBuilder(Class<T> mixinType)
Create a builder for creating new TransientComposites that implements the given TransientComposite type.
|
<T> TransientBuilder<T> newTransientBuilder(Class<T> mixinType) throws NoSuchTransientTypeException
T
- Transient typemixinType
- an interface that describes the TransientComposite to be instantiatedNoSuchTransientTypeException
- if no composite extending the mixinType has been registered<T> T newTransient(Class<T> mixinType, Object... uses) throws NoSuchTransientTypeException, ConstructionException
T
- Transient typemixinType
- the TransientComposite type to instantiateuses
- The objects that can be injected into mixinsNoSuchTransientTypeException
- if no composite extending the mixinType has been registeredConstructionException
- if the composite could not be instantiated