public class GuiceFieldValueFactory extends Object implements IFieldValueFactory
Modifier and Type | Class and Description |
---|---|
static class |
GuiceFieldValueFactory.MoreThanOneBindingException |
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)
getFieldValue
in interface IFieldValueFactory
field
- field being injectedfieldOwner
- instance of object being injectedpublic boolean supportsField(Field field)
supportsField
in interface IFieldValueFactory
field
- fieldCopyright © 2006–2022 Apache Software Foundation. All rights reserved.