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 ServiceInterceptors.
Use ServiceFinder
ServiceInterceptorFactorys 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 ServiceInterceptorstatic ServiceInterceptorload(WSService service, ClassLoader cl) Loads allServiceInterceptors and return aggregated one.static booleanRegistersServiceInterceptorFactoryfor this thread.static booleanRemoves previously registeredServiceInterceptorFactoryfor this thread.
-
Constructor Details
-
ServiceInterceptorFactory
public ServiceInterceptorFactory()
-
-
Method Details
-
create
-
load
@NotNull public static ServiceInterceptor load(@NotNull WSService service, @Nullable ClassLoader cl) Loads allServiceInterceptors and return aggregated one. -
registerForThread
RegistersServiceInterceptorFactoryfor this thread.Once registered,
ServiceInterceptorFactorys are consulted for everyServicecreated in this thread, until it gets unregistered. -
unregisterForThread
Removes previously registeredServiceInterceptorFactoryfor this thread.
-