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

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

public abstract class Invoker
extends Invoker

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.
<T> void
invokeAsyncProvider(Packet p, T arg, AsyncProviderCallback cbak, WebServiceContext ctxt)
          Invokes AsyncProvider.invoke(Object, AsyncProviderCallback, WebServiceContext)
<T> T
invokeProvider(Packet p, T arg)
          Invokes Provider.invoke(Object)
 void start(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 com.sun.xml.ws.server.sei.Invoker
invoke
 
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
                  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.


invokeProvider

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

Throws:
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException

invokeAsyncProvider

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

Throws:
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException


Copyright (c) 1997-2012 Oracle and/or its affiliates. All rights reserved.