|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.wicket.injection.Injector
public abstract class Injector
Injector scans fields of an object instance and checks if the specified
IFieldValueFactory
can provide a value for a field; if it can, the field is set to that
value. Injector will ignore all non-null fields.
Constructor Summary | |
---|---|
Injector()
|
Method Summary | |
---|---|
void |
bind(Application application)
Binds current instance of the injector to the Application. |
static Injector |
get()
|
abstract void |
inject(java.lang.Object object)
Injects the specified object. |
protected void |
inject(java.lang.Object object,
IFieldValueFactory factory)
traverse fields in the class hierarchy of the object and set their value with a locator provided by the locator factory. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Injector()
Method Detail |
---|
public void bind(Application application)
get()
whenever the
specified application object is active in the thread.
application
- public static Injector get()
public abstract void inject(java.lang.Object object)
inject(Object, IFieldValueFactory)
with some IFieldValueFactory
object
- inject(Object, IFieldValueFactory)
protected void inject(java.lang.Object object, IFieldValueFactory factory)
object
- factory
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |