org.apache.axis2.jaxws.server.endpoint.injection.impl
Class WebServiceContextInjectorImpl

java.lang.Object
  extended by org.apache.axis2.jaxws.server.endpoint.injection.impl.WebServiceContextInjectorImpl
All Implemented Interfaces:
ResourceInjector, WebServiceContextInjector

public class WebServiceContextInjectorImpl
extends java.lang.Object
implements WebServiceContextInjector


Constructor Summary
WebServiceContextInjectorImpl()
           
 
Method Summary
 void addMessageContext(WebServiceContext wc, MessageContext mc)
          MessageContext is made availble to the endpoint instance via the WebServiceContext.
 void inject(java.lang.Object resource, java.lang.Object instance)
          Inject resource on Filed, Method or Class depending on how the @Resource annotation is defined.
 void injectOnClass(java.lang.Object resource, java.lang.Object instance, java.lang.Class clazz)
          Resource will be injection on the class.
 void injectOnField(java.lang.Object resource, java.lang.Object instance, java.lang.reflect.Field field)
          Resource will be injected on the field.
 void injectOnMethod(java.lang.Object resource, java.lang.Object instance, java.lang.reflect.Method method)
          Resource will be injected on the Method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebServiceContextInjectorImpl

public WebServiceContextInjectorImpl()
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 interface WebServiceContextInjector

inject

public void inject(java.lang.Object resource,
                   java.lang.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 interface ResourceInjector
Throws:
ResourceInjectionException

injectOnClass

public void injectOnClass(java.lang.Object resource,
                          java.lang.Object instance,
                          java.lang.Class clazz)
                   throws ResourceInjectionException
Description copied from interface: ResourceInjector
Resource will be injection on the class.

Specified by:
injectOnClass in interface ResourceInjector
Throws:
ResourceInjectionException

injectOnField

public void injectOnField(java.lang.Object resource,
                          java.lang.Object instance,
                          java.lang.reflect.Field field)
                   throws ResourceInjectionException
Description copied from interface: ResourceInjector
Resource will be injected on the field.

Specified by:
injectOnField in interface ResourceInjector
Throws:
ResourceInjectionException

injectOnMethod

public void injectOnMethod(java.lang.Object resource,
                           java.lang.Object instance,
                           java.lang.reflect.Method method)
                    throws ResourceInjectionException
Description copied from interface: ResourceInjector
Resource will be injected on the Method.

Specified by:
injectOnMethod in interface ResourceInjector
Throws:
ResourceInjectionException


Copyright © 2007 Apache Web Services Project. All Rights Reserved.