|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.xml.ws.api.server.Container
public abstract class Container
Root of the SPI implemented by the container (such as application server.)
Often technologies that are built on top of JAX-WS
(such as Tango) needs to negotiate private contracts between
them and the container. This interface allows such technologies
to query the negotiated SPI by using the getSPI(Class).
For example, if a security pipe needs to get some information from a container, they can do the following:
WSEndpoint and then to Container.
This protects JAX-WS from worrying about the details of such contracts, while still providing the necessary service of hooking up those parties.
Technologies that run inside JAX-WS server runtime can access this object through
WSEndpoint.getContainer(). In the client runtime, it can be accessed from
ContainerResolver.getContainer()
WSEndpoint| Field Summary | |
|---|---|
static Container |
NONE
Constant that represents a "no Container",
which always returns null from getSPI(Class). |
| Constructor Summary | |
|---|---|
protected |
Container()
For derived classes. |
| Method Summary | ||
|---|---|---|
abstract
|
getSPI(Class<T> spiType)
Gets the specified SPI. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final Container NONE
Container",
which always returns null from getSPI(Class).
| Constructor Detail |
|---|
protected Container()
| Method Detail |
|---|
public abstract <T> T getSPI(Class<T> spiType)
This method works as a kind of directory service for SPIs between technologies on top of JAX-WS and the container.
spiType - Always non-null.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||