Package com.sun.xml.ws.api.client
Class ServiceInterceptorFactory
java.lang.Object
com.sun.xml.ws.api.client.ServiceInterceptorFactory
Creates Use
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 ServiceInterceptor
s.
Use ServiceFinder
ServiceInterceptorFactory
s discovered via ServiceFinder
will be incorporated to all WSService
instances.
Register per-thread
- Author:
- Kohsuke Kawaguchi
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract ServiceInterceptor
static ServiceInterceptor
load
(WSService service, ClassLoader cl) Loads allServiceInterceptor
s and return aggregated one.static boolean
RegistersServiceInterceptorFactory
for this thread.static boolean
Removes previously registeredServiceInterceptorFactory
for this thread.
-
Constructor Details
-
ServiceInterceptorFactory
public ServiceInterceptorFactory()
-
-
Method Details
-
create
-
load
@NotNull public static ServiceInterceptor load(@NotNull WSService service, @Nullable ClassLoader cl) Loads allServiceInterceptor
s and return aggregated one. -
registerForThread
RegistersServiceInterceptorFactory
for this thread.Once registered,
ServiceInterceptorFactory
s are consulted for everyService
created in this thread, until it gets unregistered. -
unregisterForThread
Removes previously registeredServiceInterceptorFactory
for this thread.
-