Package org.smooks.engine.injector
Class AbstractInjector<M extends Member>
- java.lang.Object
-
- org.smooks.engine.injector.AbstractInjector<M>
-
- All Implemented Interfaces:
Injector
- Direct Known Subclasses:
FieldInjector
,MethodInjector
public abstract class AbstractInjector<M extends Member> extends Object implements Injector
-
-
Constructor Summary
Constructors Constructor Description AbstractInjector()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected TypeConverter<?,?>
createTypeConverter(Class<?> sourceType, M member, Registry registry)
protected abstract void
doSetMember(Member member, Object instance, Object value, String name)
protected abstract Type
getActualType(M member)
protected abstract Object
getDefaultParamValue(Object instance, M member)
protected abstract String
getName(javax.inject.Named namedAnnotation, M member)
protected Type
getRealType(M member)
protected abstract Class<?>
getType(M member)
protected void
inject(javax.inject.Named namedAnnotation, M member, Object instance, Scope scope)
protected boolean
isEnum(Type type)
protected void
setMember(M member, Object instance, Object value, String name)
-
-
-
Method Detail
-
createTypeConverter
protected TypeConverter<?,?> createTypeConverter(Class<?> sourceType, M member, Registry registry)
-
isEnum
protected boolean isEnum(Type type)
-
inject
protected void inject(javax.inject.Named namedAnnotation, M member, Object instance, Scope scope) throws SmooksConfigException
- Throws:
SmooksConfigException
-
doSetMember
protected abstract void doSetMember(Member member, Object instance, Object value, String name) throws InvocationTargetException, IllegalAccessException
-
-