|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Injector
A pluggable strategy for creating and possibly dependency injecting objects which could be implemented using straight forward reflection or using Spring or Guice to perform dependency injection.
| Method Summary | ||
|---|---|---|
|
newInstance(Class<T> type)
Instantiates a new instance of the given type possibly injecting values into the object in the process |
|
|
newInstance(Class<T> type,
Object instance)
Instantiates a new instance of the given object type possibly injecting values into the object in the process |
|
| Method Detail |
|---|
<T> T newInstance(Class<T> type)
type - the type of object to create
<T> T newInstance(Class<T> type,
Object instance)
instance - an instance of the type to create
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||