| Modifier and Type | Method and Description |
|---|---|
void |
injectTo(Object instance,
Object... uses)
Inject an existing instance.
|
<T> T |
newObject(Class<T> type,
Object... uses)
Create new objects of the given type.
|
<T> T newObject(Class<T> type, Object... uses) throws NoSuchObjectTypeException, ConstructionException
T - Object typetype - an object class which will be instantiateduses - objects that can be injected into mixinsConstructionException - Thrown if instantiation fails.NoSuchObjectTypeException - Thrown if type class is not an object.void injectTo(Object instance, Object... uses) throws ConstructionException
instance - instanceuses - dependenciesConstructionException - if it was not possible to construct the Object dependencies