org.apache.wicket.injection
Class NoopFieldValueFactory
java.lang.Object
org.apache.wicket.injection.NoopFieldValueFactory
- All Implemented Interfaces:
- IFieldValueFactory
public class NoopFieldValueFactory
- extends Object
- implements IFieldValueFactory
Implementation of field value factory that ignores all fields
- Author:
- Igor Vaynberg (ivaynberg)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NoopFieldValueFactory
public NoopFieldValueFactory()
getFieldValue
public Object getFieldValue(Field field,
Object fieldOwner)
- Description copied from interface:
IFieldValueFactory
- Returns the value the field will be set to
- Specified by:
getFieldValue
in interface IFieldValueFactory
- Parameters:
field
- field being injectedfieldOwner
- instance of object being injected
- Returns:
- new field value
- See Also:
IFieldValueFactory.getFieldValue(java.lang.reflect.Field,
java.lang.Object)
supportsField
public boolean supportsField(Field field)
- 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 interface IFieldValueFactory
- Parameters:
field
- field
- Returns:
- true if the factory can generate a value for the field, false otherwise
- See Also:
IFieldValueFactory.supportsField(java.lang.reflect.Field)
Copyright © 2004-2011 Apache Software Foundation. All Rights Reserved.