Package org.apache.wicket.guice
Class GuiceFieldValueFactory
- java.lang.Object
-
- org.apache.wicket.guice.GuiceFieldValueFactory
-
- All Implemented Interfaces:
IFieldValueFactory
public class GuiceFieldValueFactory extends Object implements IFieldValueFactory
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
GuiceFieldValueFactory.MoreThanOneBindingException
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
getFieldValue(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 Detail
-
getFieldValue
public Object getFieldValue(Field field, Object fieldOwner)
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
-
supportsField
public boolean supportsField(Field field)
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
-
-