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 ServiceInterceptors.
ServiceFinder
ServiceInterceptorFactorys 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
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. |
public abstract ServiceInterceptor create(@NotNull WSService service)
@NotNull public static ServiceInterceptor load(@NotNull WSService service, @Nullable ClassLoader cl)
ServiceInterceptors and return aggregated one.public static boolean registerForThread(ServiceInterceptorFactory factory)
ServiceInterceptorFactory for this thread.
Once registered, ServiceInterceptorFactorys are consulted for every
Service created in this thread, until it gets unregistered.
public static boolean unregisterForThread(ServiceInterceptorFactory factory)
ServiceInterceptorFactory for this thread.Copyright (c) 1997-2012 Oracle and/or its affiliates. All rights reserved.