com.sun.xml.ws.api.server
Class Invoker

java.lang.Object
  extended by com.sun.xml.ws.api.server.Invoker

public abstract class Invoker
extends Object

Hides the detail of calling into application endpoint implementation.

Typical host of the JAX-WS RI would want to use InstanceResolver.createDefault(Class) and then use InstanceResolver.createInvoker() to obtain the default invoker implementation.


Constructor Summary
Invoker()
           
 
Method Summary
 void dispose()
          Called by WSEndpoint when WSEndpoint.dispose() is called.
abstract  Object invoke(Packet p, Method m, Object... args)
           
<T> void
invokeAsyncProvider(Packet p, T arg, AsyncProviderCallback cbak, javax.xml.ws.WebServiceContext ctxt)
          Invokes AsyncProvider.invoke(Object, AsyncProviderCallback, WebServiceContext)
<T> T
invokeProvider(Packet p, T arg)
          Invokes Provider.invoke(Object)
 void start(javax.xml.ws.WebServiceContext wsc)
          Deprecated. Use start(WSWebServiceContext,WSEndpoint)
 void start(WSWebServiceContext wsc, WSEndpoint endpoint)
          Called by WSEndpoint when it's set up.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Invoker

public Invoker()
Method Detail

start

public void start(@NotNull
                  WSWebServiceContext wsc,
                  @NotNull
                  WSEndpoint endpoint)
Called by WSEndpoint when it's set up.

This is an opportunity for Invoker to do a endpoint-specific initialization process.

Parameters:
wsc - The WebServiceContext instance that can be injected to the user instances.
endpoint -

start

public void start(@NotNull
                  javax.xml.ws.WebServiceContext wsc)
Deprecated. Use start(WSWebServiceContext,WSEndpoint)


dispose

public void dispose()
Called by WSEndpoint when WSEndpoint.dispose() is called. This allows InstanceResolver to do final clean up.

This method is guaranteed to be only called once by WSEndpoint.


invoke

public abstract Object invoke(@NotNull
                              Packet p,
                              @NotNull
                              Method m,
                              @NotNull
                              Object... args)
                       throws InvocationTargetException,
                              IllegalAccessException
Throws:
InvocationTargetException
IllegalAccessException

invokeProvider

public <T> T invokeProvider(@NotNull
                            Packet p,
                            T arg)
                 throws IllegalAccessException,
                        InvocationTargetException
Invokes Provider.invoke(Object)

Throws:
IllegalAccessException
InvocationTargetException

invokeAsyncProvider

public <T> void invokeAsyncProvider(@NotNull
                                    Packet p,
                                    T arg,
                                    AsyncProviderCallback cbak,
                                    javax.xml.ws.WebServiceContext ctxt)
                         throws IllegalAccessException,
                                InvocationTargetException
Invokes AsyncProvider.invoke(Object, AsyncProviderCallback, WebServiceContext)

Throws:
IllegalAccessException
InvocationTargetException