Class FieldHandler
java.lang.Object
org.apache.felix.scr.impl.inject.field.FieldHandler
Handler for field references
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static enumprivate static classFinal state of field couldn't be found or errors occurred.private static classInitial state.static final classprivate static classFinal state of field could be found and is valid.private static interfaceInternal state interface. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Class<?> The component class.private FieldThe field used for the injection.private final ReferenceMetadataThe reference metadata.private FieldHandler.StateState handling.private ValueUtils.ValueTypeValue type. -
Constructor Summary
ConstructorsConstructorDescriptionFieldHandler(ReferenceMetadata metadata, Class<?> componentClass) Create a new field handler -
Method Summary
Modifier and TypeMethodDescriptionbooleanfieldExists(ComponentLogger logger) getBind()private ObjectgetFieldValue(Object componentInstance) getInit()private Collection<Object> private booleaninitField(Object componentInstance, ComponentLogger logger) private voidsetFieldValue(Object componentInstance, Object value) (package private) voidsetSearchResult(FieldUtils.FieldSearchResult result, ComponentLogger logger) private MethodResultupdateField(FieldHandler.METHOD_TYPE mType, Object componentInstance, BindParameters bp)
-
Field Details
-
metadata
The reference metadata. -
componentClass
The component class. -
field
The field used for the injection. -
valueType
Value type. -
state
State handling.
-
-
Constructor Details
-
FieldHandler
Create a new field handler- Parameters:
componentClass- component classfieldName- name of the fieldreferenceClassName- service class name
-
-
Method Details
-
initField
-
getReplaceCollection
-
updateField
private MethodResult updateField(FieldHandler.METHOD_TYPE mType, Object componentInstance, BindParameters bp) throws InvocationTargetException - Throws:
InvocationTargetException
-
setFieldValue
- Throws:
InvocationTargetException
-
getFieldValue
- Throws:
InvocationTargetException
-
fieldExists
-
setSearchResult
-
getBind
-
getUnbind
-
getUpdated
-
getInit
-