Package org.apache.wicket.injection
Interface IFieldValueFactory
- All Known Implementing Classes:
AnnotProxyFieldValueFactory
,CompoundFieldValueFactory
,GuiceFieldValueFactory
,NoopFieldValueFactory
public interface IFieldValueFactory
Factory object used by injector to generate values for fields of the object being injected.
- Author:
- Igor Vaynberg (ivaynberg)
-
Method Summary
Modifier and TypeMethodDescriptiongetFieldValue
(Field field, Object fieldOwner) Returns the value the field will be set toboolean
supportsField
(Field field) Returns true if the factory can generate a value for the field, false otherwise.
-
Method Details
-
getFieldValue
Returns the value the field will be set to- Parameters:
field
- field being injectedfieldOwner
- instance of object being injected- Returns:
- new field value
-
supportsField
Returns true if the factory can generate a value for the field, false otherwise. If this method returns false, getFieldValue() will not be called on this factory- Parameters:
field
- field- Returns:
- true if the factory can generate a value for the field, false otherwise
-