Package org.smooks.engine.injector
Class MethodInjector
- java.lang.Object
-
- org.smooks.engine.injector.AbstractInjector<Method>
-
- org.smooks.engine.injector.MethodInjector
-
- All Implemented Interfaces:
Injector
public class MethodInjector extends AbstractInjector<Method>
-
-
Constructor Summary
Constructors Constructor Description MethodInjector(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(Method method)
protected Object
getDefaultParamValue(Object instance, Method member)
protected String
getName(javax.inject.Named namedAnnotation, Method method)
protected Class<?>
getType(Method method)
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(Method method)
- Specified by:
getType
in classAbstractInjector<Method>
-
getActualType
protected Type getActualType(Method method)
- Specified by:
getActualType
in classAbstractInjector<Method>
-
getName
protected String getName(javax.inject.Named namedAnnotation, Method method)
- Specified by:
getName
in classAbstractInjector<Method>
-
getDefaultParamValue
protected Object getDefaultParamValue(Object instance, Method member)
- Specified by:
getDefaultParamValue
in classAbstractInjector<Method>
-
doSetMember
protected void doSetMember(Member member, Object instance, Object value, String name) throws InvocationTargetException, IllegalAccessException
- Specified by:
doSetMember
in classAbstractInjector<Method>
- Throws:
InvocationTargetException
IllegalAccessException
-
-