|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.xml.ws.api.server.ContainerResolver
public abstract class ContainerResolver
This class determines an instance of Container
for 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). T
ContainerResolver 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)
Constructor Summary | |
---|---|
ContainerResolver()
|
Method Summary | |
---|---|
abstract Container |
getContainer()
Returns the Container context in which client is running. |
static ThreadLocalContainerResolver |
getDefault()
Returns the default container resolver which can be used to get Container . |
static ContainerResolver |
getInstance()
Returns the container resolver which can be used to get client's Container . |
static void |
setInstance(ContainerResolver resolver)
Sets the custom container resolver which can be used to get client's Container . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ContainerResolver()
Method Detail |
---|
public static void setInstance(ContainerResolver resolver)
Container
.
resolver
- container resolver@NotNull public static ContainerResolver getInstance()
Container
.
public static ThreadLocalContainerResolver getDefault()
Container
.
@NotNull public abstract Container getContainer()
Container
context in which client is running.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |