Interface AsyncHandlerProxyFactory

  • All Known Implementing Classes:
    AsyncHandlerProxyFactoryImpl

    public interface AsyncHandlerProxyFactory
    This interface defines the plug-point that is responsible for creating a proxy for an AsyncHandler instance provided by a client application as part of an async request invocation. This interface allows the plug-in implementor to create a proxy which wraps the client-provided AsyncHandler instance and can be used to perform application-server-specific actions in conjunction with the execution of the AsyncHandler instance, such as thread context migration, etc. To use this plug-point, you must define a class which implements this interface, then register your implementation with the JAX-WS FactoryRegistry.setFactory() method.
    • Method Detail

      • createAsyncHandlerProxy

        AsyncHandler createAsyncHandlerProxy​(AsyncHandler ah)
                                      throws Exception
        This method is invoked by the JAX-WS runtime to allow the implementation to provide a proxy for the specified AsyncHandler instance.
        Parameters:
        ah - the AsyncHandler instance to be wrapped with the new proxy
        Returns:
        the proxy which wraps the original AsyncHandler instance
        Throws:
        Exception