Class Module
- java.lang.Object
-
- com.sun.xml.ws.api.server.Module
-
- All Implemented Interfaces:
Component
- Direct Known Subclasses:
WebModule
public abstract class Module extends Object implements Component
Represents an object scoped to the current "module" (like a JavaEE web appliation).This object can be obtained from
Container.getSPI(Class)
.The scope of the module is driven by
W3CEndpointReferenceBuilder.build()
's requirement that we need to identify aWSEndpoint
that has a specific service/port name.For JavaEE containers this should be scoped to a JavaEE application. For other environment, this could be scoped to any similar notion. If no such notion is available, the implementation of
Container
can return a newModule
object each timeContainer.getSPI(Class)
is invoked.There's a considerable overlap between this and
HttpAdapterList
. The SPI really needs to be reconsidered- Since:
- 2.1 EA3
- Author:
- Kohsuke Kawaguchi
- See Also:
Container
-
-
Constructor Summary
Constructors Constructor Description Module()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract List<BoundEndpoint>
getBoundEndpoints()
Gets the list ofBoundEndpoint
deployed in this module.<S> S
getSPI(Class<S> spiType)
Gets the specified SPI.
-
-
-
Method Detail
-
getBoundEndpoints
@NotNull public abstract List<BoundEndpoint> getBoundEndpoints()
Gets the list ofBoundEndpoint
deployed in this module.From the point of view of the
Module
implementation, it really only needs to provide aList
object as a data store. JAX-WS will update this list accordingly.- Returns:
- always return the same non-null instance.
-
-