Class WebServiceContextInjectorImpl
java.lang.Object
org.apache.axis2.jaxws.server.endpoint.injection.impl.WebServiceContextInjectorImpl
- All Implemented Interfaces:
ResourceInjector,WebServiceContextInjector
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddMessageContext(jakarta.xml.ws.WebServiceContext wc, jakarta.xml.ws.handler.MessageContext mc) MessageContext is made availble to the endpoint instance via the WebServiceContext.voidInject 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.
-
Constructor Details
-
WebServiceContextInjectorImpl
public WebServiceContextInjectorImpl()
-
-
Method Details
-
addMessageContext
public void addMessageContext(jakarta.xml.ws.WebServiceContext wc, jakarta.xml.ws.handler.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
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
-