public class CompoundFieldValueFactory extends Object implements IFieldValueFactory
IFieldValueFactory
Constructor and Description |
---|
CompoundFieldValueFactory(IFieldValueFactory[] factories)
Constructor
|
CompoundFieldValueFactory(IFieldValueFactory f1,
IFieldValueFactory f2)
Constructor
|
CompoundFieldValueFactory(List<IFieldValueFactory> factories)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
addFactory(IFieldValueFactory factory)
Adds a factory to the compound factory
|
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 CompoundFieldValueFactory(IFieldValueFactory[] factories)
factories
- public CompoundFieldValueFactory(List<IFieldValueFactory> factories)
factories
- public CompoundFieldValueFactory(IFieldValueFactory f1, IFieldValueFactory f2)
f1
- f2
- public void addFactory(IFieldValueFactory factory)
factory
- 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.