|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ObjectFactory
This factory creates and injects POJO's.
Method Summary | ||
---|---|---|
void |
injectTo(java.lang.Object instance,
java.lang.Object... uses)
Inject an existing instance. |
|
|
newObject(java.lang.Class<T> type,
java.lang.Object... uses)
Create new objects of the given type. |
Method Detail |
---|
<T> T newObject(java.lang.Class<T> type, java.lang.Object... uses) throws NoSuchObjectException, ConstructionException
type
- an object class which will be instantiated.
ConstructionException
- Thrown if instantiation fails.
NoSuchObjectException
- Thrown if type
class is not an object.void injectTo(java.lang.Object instance, java.lang.Object... uses) throws ConstructionException
instance
-
ConstructionException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |