Package com.sun.xml.ws.test.container
Interface ApplicationContainer
-
- All Known Implementing Classes:
AbstractApplicationContainer,EmbeddedCargoApplicationContainer,GlassfishContainer,InstalledCargoApplicationContainer,InVmContainer,JavaSeContainer,LocalApplicationContainer,RemoteCargoApplicationContainer
public interface ApplicationContainerRepresents a place that runs services.This object needs to be multi-thread safe.
- Author:
- Kohsuke Kawaguchi
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Applicationdeploy(DeployedService service)Starts a service inside a container, making it ready to process requests.StringgetTransport()Returns the transport that this container uses for testing.Set<String>getUnsupportedUses()Returns the unsupported uses for this container.voidshutdown()Stops the container.voidstart()Starts the container.
-
-
-
Method Detail
-
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
@NotNull Set<String> 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
void start() throws ExceptionStarts the container. This is invoked at the very beginning before any service is deployed.- Throws:
Exception
-
deploy
@NotNull Application deploy(DeployedService service) throws Exception
Starts a service inside a container, making it ready to process requests.- Throws:
Exception
-
-