Interface ResourceInjector
- All Known Subinterfaces:
WebServiceContextInjector
- All Known Implementing Classes:
WebServiceContextInjectorImpl
public interface ResourceInjector
-
Method Summary
Modifier and TypeMethodDescriptionvoidInject resource on Filed, Method or Class depending on how the @Resource annotation is defined.voidinjectOnClass(Object resource, Object instance, Class clazz) Resource will be injection on the class.voidinjectOnField(Object resource, Object instance, Field field) Resource will be injected on the field.voidinjectOnMethod(Object resource, Object instance, Method method) Resource will be injected on the Method.
-
Method Details
-
inject
Inject resource on Filed, Method or Class depending on how the @Resource annotation is defined.- Parameters:
resource-instance-- Throws:
ResourceInjectionException
-
injectOnField
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
Resource will be injection on the class.- Parameters:
resource-instance-clazz-- Throws:
ResourceInjectionException
-