java.lang.Object
org.apache.wicket.injection.NoopFieldValueFactory
- All Implemented Interfaces:
IFieldValueFactory
Implementation of field value factory that ignores all fields
- Author:
- Igor Vaynberg (ivaynberg)
-
Constructor Summary
-
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.
-
Constructor Details
-
NoopFieldValueFactory
public NoopFieldValueFactory()
-
-
Method Details
-
getFieldValue
Description copied from interface:IFieldValueFactory
Returns the value the field will be set to- Specified by:
getFieldValue
in interfaceIFieldValueFactory
- Parameters:
field
- field being injectedfieldOwner
- instance of object being injected- Returns:
- new field value
- See Also:
-
supportsField
Description copied from interface:IFieldValueFactory
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- Specified by:
supportsField
in interfaceIFieldValueFactory
- Parameters:
field
- field- Returns:
- true if the factory can generate a value for the field, false otherwise
- See Also:
-