Interface ResourceInjector
-
- All Known Subinterfaces:
WebServiceContextInjector
- All Known Implementing Classes:
WebServiceContextInjectorImpl
public interface ResourceInjector
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
inject(Object resource, Object instance)
Inject resource on Filed, Method or Class depending on how the @Resource annotation is defined.void
injectOnClass(Object resource, Object instance, Class clazz)
Resource will be injection on the class.void
injectOnField(Object resource, Object instance, Field field)
Resource will be injected on the field.void
injectOnMethod(Object resource, Object instance, Method method)
Resource will be injected on the Method.
-
-
-
Method Detail
-
inject
void inject(Object resource, Object instance) throws ResourceInjectionException
Inject resource on Filed, Method or Class depending on how the @Resource annotation is defined.- Parameters:
resource
-instance
-- Throws:
ResourceInjectionException
-
injectOnField
void injectOnField(Object resource, Object instance, Field field) throws ResourceInjectionException
Resource will be injected on the field.- Parameters:
resource
-instance
-field
-- Throws:
ResourceInjectionException
-
injectOnMethod
void injectOnMethod(Object resource, Object instance, Method method) throws ResourceInjectionException
Resource will be injected on the Method.- Parameters:
resource
-instance
-method
-- Throws:
ResourceInjectionException
-
injectOnClass
void injectOnClass(Object resource, Object instance, Class clazz) throws ResourceInjectionException
Resource will be injection on the class.- Parameters:
resource
-instance
-clazz
-- Throws:
ResourceInjectionException
-
-