Package com.sun.xml.ws.api.client
Class ServiceInterceptorFactory
- java.lang.Object
-
- com.sun.xml.ws.api.client.ServiceInterceptorFactory
-
public abstract class ServiceInterceptorFactory extends Object
CreatesServiceInterceptor.Code that wishes to inject
ServiceInterceptorintoWSServicemust implement this class. There are two ways to have the JAX-WS RI recognize yourServiceInterceptors.Use
ServiceFinderServiceInterceptorFactorys discovered viaServiceFinderwill be incorporated to allWSServiceinstances.Register per-thread
- Author:
- Kohsuke Kawaguchi
- See Also:
ServiceInterceptor
-
-
Constructor Summary
Constructors Constructor Description ServiceInterceptorFactory()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract ServiceInterceptorcreate(WSService service)static ServiceInterceptorload(WSService service, ClassLoader cl)Loads allServiceInterceptors and return aggregated one.static booleanregisterForThread(ServiceInterceptorFactory factory)RegistersServiceInterceptorFactoryfor this thread.static booleanunregisterForThread(ServiceInterceptorFactory factory)Removes previously registeredServiceInterceptorFactoryfor this thread.
-
-
-
Method Detail
-
create
public abstract ServiceInterceptor create(@NotNull WSService service)
-
load
@NotNull public static ServiceInterceptor load(@NotNull WSService service, @Nullable ClassLoader cl)
Loads allServiceInterceptors and return aggregated one.
-
registerForThread
public static boolean registerForThread(ServiceInterceptorFactory factory)
RegistersServiceInterceptorFactoryfor this thread.Once registered,
ServiceInterceptorFactorys are consulted for everyServicecreated in this thread, until it gets unregistered.
-
unregisterForThread
public static boolean unregisterForThread(ServiceInterceptorFactory factory)
Removes previously registeredServiceInterceptorFactoryfor this thread.
-
-