com.sun.xml.ws.api.client
Class ServiceInterceptorFactory

java.lang.Object
  extended by com.sun.xml.ws.api.client.ServiceInterceptorFactory

public abstract class ServiceInterceptorFactory
extends Object

Creates ServiceInterceptor.

Code that wishes to inject ServiceInterceptor into WSService must implement this class. There are two ways to have the JAX-WS RI recognize your ServiceInterceptors.

Use ServiceFinder

ServiceInterceptorFactorys discovered via ServiceFinder will be incorporated to all WSService instances.

Register per-thread

See Also:
ServiceInterceptor, EA3

Constructor Summary
ServiceInterceptorFactory()
           
 
Method Summary
abstract  ServiceInterceptor create(WSService service)
           
static ServiceInterceptor load(WSService service, ClassLoader cl)
          Loads all ServiceInterceptors and return aggregated one.
static boolean registerForThread(ServiceInterceptorFactory factory)
          Registers ServiceInterceptorFactory for this thread.
static boolean unregisterForThread(ServiceInterceptorFactory factory)
          Removes previously registered ServiceInterceptorFactory for this thread.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServiceInterceptorFactory

public ServiceInterceptorFactory()
Method Detail

create

public abstract ServiceInterceptor create(@NotNull
                                          WSService service)

load

@NotNull
public static ServiceInterceptor load(@NotNull
                                              WSService service,
                                              @Nullable
                                              ClassLoader cl)
Loads all ServiceInterceptors and return aggregated one.


registerForThread

public static boolean registerForThread(ServiceInterceptorFactory factory)
Registers ServiceInterceptorFactory for this thread.

Once registered, ServiceInterceptorFactorys are consulted for every Service created in this thread, until it gets unregistered.


unregisterForThread

public static boolean unregisterForThread(ServiceInterceptorFactory factory)
Removes previously registered ServiceInterceptorFactory for this thread.