public class NoopFieldValueFactory extends Object implements IFieldValueFactory
Constructor and Description |
---|
NoopFieldValueFactory() |
Modifier and Type | Method and Description |
---|---|
Object |
getFieldValue(Field field,
Object fieldOwner)
Returns the value the field will be set to
|
boolean |
supportsField(Field field)
Returns true if the factory can generate a value for the field, false otherwise.
|
public Object getFieldValue(Field field, Object fieldOwner)
IFieldValueFactory
getFieldValue
in interface IFieldValueFactory
field
- field being injectedfieldOwner
- instance of object being injectedIFieldValueFactory.getFieldValue(java.lang.reflect.Field,
java.lang.Object)
public boolean supportsField(Field field)
IFieldValueFactory
supportsField
in interface IFieldValueFactory
field
- fieldIFieldValueFactory.supportsField(java.lang.reflect.Field)
Copyright © 2006–2022 Apache Software Foundation. All rights reserved.