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 voidaddMessageContext(WebServiceContext wc, MessageContext mc)MessageContext is made availble to the endpoint instance via the WebServiceContext.voidinject(Object resource, Object instance)Inject 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 Detail
-
addMessageContext
public void addMessageContext(WebServiceContext wc, MessageContext mc)
Description copied from interface:WebServiceContextInjectorMessageContext 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:
addMessageContextin interfaceWebServiceContextInjector
-
inject
public void inject(Object resource, Object instance) throws ResourceInjectionException
Description copied from interface:ResourceInjectorInject resource on Filed, Method or Class depending on how the @Resource annotation is defined.- Specified by:
injectin interfaceResourceInjector- Throws:
ResourceInjectionException
-
injectOnClass
public void injectOnClass(Object resource, Object instance, Class clazz) throws ResourceInjectionException
Description copied from interface:ResourceInjectorResource will be injection on the class.- Specified by:
injectOnClassin interfaceResourceInjector- Throws:
ResourceInjectionException
-
injectOnField
public void injectOnField(Object resource, Object instance, Field field) throws ResourceInjectionException
Description copied from interface:ResourceInjectorResource will be injected on the field.- Specified by:
injectOnFieldin interfaceResourceInjector- Throws:
ResourceInjectionException
-
injectOnMethod
public void injectOnMethod(Object resource, Object instance, Method method) throws ResourceInjectionException
Description copied from interface:ResourceInjectorResource will be injected on the Method.- Specified by:
injectOnMethodin interfaceResourceInjector- Throws:
ResourceInjectionException
-
-