public abstract class ContainerResolver extends Object
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 and Description |
---|
ContainerResolver() |
Modifier and Type | Method and Description |
---|---|
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 . |
public static void setInstance(ContainerResolver resolver)
Container
.resolver
- container resolver@NotNull public static ContainerResolver getInstance()
Container
.public static ThreadLocalContainerResolver getDefault()
Container
.Copyright (c) 1997-2012 Oracle and/or its affiliates. All rights reserved.