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
ServiceInterceptor
intoWSService
must implement this class. There are two ways to have the JAX-WS RI recognize yourServiceInterceptor
s.Use
ServiceFinder
ServiceInterceptorFactory
s discovered viaServiceFinder
will be incorporated to allWSService
instances.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 ServiceInterceptor
create(WSService service)
static ServiceInterceptor
load(WSService service, ClassLoader cl)
Loads allServiceInterceptor
s and return aggregated one.static boolean
registerForThread(ServiceInterceptorFactory factory)
RegistersServiceInterceptorFactory
for this thread.static boolean
unregisterForThread(ServiceInterceptorFactory factory)
Removes previously registeredServiceInterceptorFactory
for 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 allServiceInterceptor
s and return aggregated one.
-
registerForThread
public static boolean registerForThread(ServiceInterceptorFactory factory)
RegistersServiceInterceptorFactory
for this thread.Once registered,
ServiceInterceptorFactory
s are consulted for everyService
created in this thread, until it gets unregistered.
-
unregisterForThread
public static boolean unregisterForThread(ServiceInterceptorFactory factory)
Removes previously registeredServiceInterceptorFactory
for this thread.
-
-