Class WebServiceContextInjectorImpl
- java.lang.Object
-
- org.apache.axis2.jaxws.server.endpoint.injection.impl.WebServiceContextInjectorImpl
-
- All Implemented Interfaces:
ResourceInjector
,WebServiceContextInjector
public class WebServiceContextInjectorImpl extends Object implements WebServiceContextInjector
-
-
Constructor Summary
Constructors Constructor Description WebServiceContextInjectorImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addMessageContext(WebServiceContext wc, MessageContext mc)
MessageContext is made availble to the endpoint instance via the WebServiceContext.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
-
addMessageContext
public void addMessageContext(WebServiceContext wc, MessageContext mc)
Description copied from interface:WebServiceContextInjector
MessageContext is made availble to the endpoint instance via the WebServiceContext. This method will add MessageContext to WebServiceContext that is injected in WebService. MessageContext represents the context of Inbound message following the Handler Execution. Only properties with Application scope will be exposed.- Specified by:
addMessageContext
in interfaceWebServiceContextInjector
-
inject
public void inject(Object resource, Object instance) throws ResourceInjectionException
Description copied from interface:ResourceInjector
Inject resource on Filed, Method or Class depending on how the @Resource annotation is defined.- Specified by:
inject
in interfaceResourceInjector
- Throws:
ResourceInjectionException
-
injectOnClass
public void injectOnClass(Object resource, Object instance, Class clazz) throws ResourceInjectionException
Description copied from interface:ResourceInjector
Resource will be injection on the class.- Specified by:
injectOnClass
in interfaceResourceInjector
- Throws:
ResourceInjectionException
-
injectOnField
public void injectOnField(Object resource, Object instance, Field field) throws ResourceInjectionException
Description copied from interface:ResourceInjector
Resource will be injected on the field.- Specified by:
injectOnField
in interfaceResourceInjector
- Throws:
ResourceInjectionException
-
injectOnMethod
public void injectOnMethod(Object resource, Object instance, Method method) throws ResourceInjectionException
Description copied from interface:ResourceInjector
Resource will be injected on the Method.- Specified by:
injectOnMethod
in interfaceResourceInjector
- Throws:
ResourceInjectionException
-
-