Package com.sun.xml.ws.test.container
Interface ApplicationContainer
- All Known Implementing Classes:
AbstractApplicationContainer,EmbeddedCargoApplicationContainer,GlassfishContainer,InstalledCargoApplicationContainer,InVmContainer,JavaSeContainer,LocalApplicationContainer,RemoteCargoApplicationContainer
public interface ApplicationContainer
Represents a place that runs services.
This object needs to be multi-thread safe.
- Author:
- Kohsuke Kawaguchi
-
Method Summary
Modifier and TypeMethodDescriptiondeploy(DeployedService service) Starts a service inside a container, making it ready to process requests.Returns the transport that this container uses for testing.Returns the unsupported uses for this container.voidshutdown()Stops the container.voidstart()Starts the container.
-
Method Details
-
getTransport
String getTransport()Returns the transport that this container uses for testing.- Returns:
- For example, "http", "local", "tcp", "jms", etc. It should match the scheme portion of the endpoint address URI. Never null. This value is compared in the descriptor's transport declaration to decide wheter to run a test or not.
-
getUnsupportedUses
Returns the unsupported uses for this container. For e.g lwhs container may return "servlet" as an unsupported "use"- Returns:
- unsupported uses like "servlet", "nonapi" etc the returned value is compared againt descriptor's "uses" decl to decide wheter to run a test or not.
-
start
Starts the container. This is invoked at the very beginning before any service is deployed.- Throws:
Exception
-
deploy
Starts a service inside a container, making it ready to process requests.- Throws:
Exception
-
shutdown
Stops the container. This is invoked at the end to clean up any resources.- Throws:
Exception
-