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 NoSuchTransientException
mixinType
- an interface that describes the TransientComposite to be instantiatedNoSuchTransientException
- if no composite extending the mixinType has been registered<T> T newTransient(Class<T> mixinType, Object... uses) throws NoSuchTransientException, ConstructionException
mixinType
- the TransientComposite type to instantiateNoSuchTransientException
- if no composite extending the mixinType has been registeredConstructionException
- if the composite could not be instantiated