| java.lang.Object org.apache.wicket.injection.Injector
All known Subclasses: org.apache.wicket.injection.ConfigurableInjector,
Injector | public class Injector (Code) | | 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.
author: Igor Vaynberg (ivaynberg) |
Method Summary | |
public static Injector | getInstance() | public Object | inject(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. | protected boolean | isBoundaryClass(Class clazz) When the initializer traverses the hierarchy of the specified object it
will stop if it encounters a boundary class. |
getInstance | public static Injector getInstance()(Code) | | static instance of ProxyInjector |
inject | public Object inject(Object object, IFieldValueFactory factory)(Code) | | traverse fields in the class hierarchy of the object and set their value
with a locator provided by the locator factory.
Parameters: object - Parameters: factory - Object that was injected - used for chaining |
isBoundaryClass | protected boolean isBoundaryClass(Class clazz)(Code) | | When the initializer traverses the hierarchy of the specified object it
will stop if it encounters a boundary class.
By default, more common wicket classes are defined as boundaries so that
the initializer does not waste time traversing them.
Parameters: clazz - class to be tested for being a boundary class true if the class is a boundary class, false otherwise |
|
|