Package com.sun.xml.ws.api.server
Class ContainerResolver
- java.lang.Object
-
- com.sun.xml.ws.api.server.ContainerResolver
-
- Direct Known Subclasses:
ThreadLocalContainerResolver
public abstract class ContainerResolver extends Object
This class determines an instance ofContainerfor the runtime. It applies for both server and client runtimes(for e.g in Servlet could be accessing a Web Service). A client that is invoking a web service may be running in a container(for e.g servlet). TContainerResolver uses a static field to keep the instance of the resolver object. Typically appserver may set its custom container resolver using the static method
setInstance(ContainerResolver)- Author:
- Jitendra Kotamraju
-
-
Constructor Summary
Constructors Constructor Description ContainerResolver()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract ContainergetContainer()Returns theContainercontext in which client is running.static ThreadLocalContainerResolvergetDefault()Returns the default container resolver which can be used to getContainer.static ContainerResolvergetInstance()Returns the container resolver which can be used to get client'sContainer.static voidsetInstance(ContainerResolver resolver)Sets the custom container resolver which can be used to get client'sContainer.
-
-
-
Method Detail
-
setInstance
public static void setInstance(ContainerResolver resolver)
Sets the custom container resolver which can be used to get client'sContainer.- Parameters:
resolver- container resolver
-
getInstance
@NotNull public static ContainerResolver getInstance()
Returns the container resolver which can be used to get client'sContainer.- Returns:
- container resolver instance
-
getDefault
public static ThreadLocalContainerResolver getDefault()
Returns the default container resolver which can be used to getContainer.- Returns:
- default container resolver
-
-