Package org.smooks.engine.injector
Class FieldInjector
- java.lang.Object
-
- org.smooks.engine.injector.AbstractInjector<Field>
-
- org.smooks.engine.injector.FieldInjector
-
- All Implemented Interfaces:
Injector
public class FieldInjector extends AbstractInjector<Field>
-
-
Constructor Summary
Constructors Constructor Description FieldInjector(Object instance, Scope scope)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
doSetMember(Member member, Object instance, Object value, String name)
protected Type
getActualType(Field field)
protected Object
getDefaultParamValue(Object instance, Field field)
protected String
getName(javax.inject.Named namedAnnotation, Field field)
protected Class<?>
getType(Field field)
void
inject()
-
Methods inherited from class org.smooks.engine.injector.AbstractInjector
createTypeConverter, getRealType, inject, isEnum, setMember
-
-
-
-
Method Detail
-
inject
public void inject()
-
getType
protected Class<?> getType(Field field)
- Specified by:
getType
in classAbstractInjector<Field>
-
getActualType
protected Type getActualType(Field field)
- Specified by:
getActualType
in classAbstractInjector<Field>
-
getName
protected String getName(javax.inject.Named namedAnnotation, Field field)
- Specified by:
getName
in classAbstractInjector<Field>
-
getDefaultParamValue
protected Object getDefaultParamValue(Object instance, Field field)
- Specified by:
getDefaultParamValue
in classAbstractInjector<Field>
-
doSetMember
protected void doSetMember(Member member, Object instance, Object value, String name) throws IllegalAccessException
- Specified by:
doSetMember
in classAbstractInjector<Field>
- Throws:
IllegalAccessException
-
-