public abstract class ServiceInterceptorFactory extends Object
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.
ServiceFinder
ServiceInterceptorFactory
s discovered via ServiceFinder
will be incorporated to all WSService
instances.
ServiceInterceptor
,
EA3
Constructor and Description |
---|
ServiceInterceptorFactory() |
Modifier and Type | Method and Description |
---|---|
abstract ServiceInterceptor |
create(WSService service) |
static ServiceInterceptor |
load(WSService service,
ClassLoader cl)
Loads all
ServiceInterceptor s 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. |
public abstract ServiceInterceptor create(@NotNull WSService service)
@NotNull public static ServiceInterceptor load(@NotNull WSService service, @Nullable ClassLoader cl)
ServiceInterceptor
s and return aggregated one.public static boolean registerForThread(ServiceInterceptorFactory factory)
ServiceInterceptorFactory
for this thread.
Once registered, ServiceInterceptorFactory
s are consulted for every
Service
created in this thread, until it gets unregistered.
public static boolean unregisterForThread(ServiceInterceptorFactory factory)
ServiceInterceptorFactory
for this thread.Copyright © 2015 Oracle Corporation. All rights reserved.