Package org.glassfish.internal.embedded
Interface EmbeddedContainer
-
- All Known Subinterfaces:
EmbeddedAdminContainer,GrizzlyContainer
@Contract public interface EmbeddedContainerEmbedded container definition, although most containers will be bound to aPortinstance, it's not automatic, for instance JPA and other non network based containers might not.- Author:
- Jerome Dochez
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidbind(Port port, String protocol)Binds a port using a specific protocol to this container.List<org.glassfish.api.container.Sniffer>getSniffers()Returns the list of sniffers associated with this container.voidstart()Starts the embedded container instancevoidstop()Stops the embedded container instance
-
-
-
Method Detail
-
bind
void bind(Port port, String protocol)
Binds a port using a specific protocol to this container.- Parameters:
port- the port instance to bindprotocol- the protocol the port should be used for, can be null and the container can use the port for any protocol(s) it needs to.
-
getSniffers
List<org.glassfish.api.container.Sniffer> getSniffers()
Returns the list of sniffers associated with this container.- Returns:
- a list of sniffers that will be used when application are deployed to the embedded server.
-
start
void start() throws LifecycleExceptionStarts the embedded container instance- Throws:
LifecycleException- if the container cannot started
-
stop
void stop() throws LifecycleException
Stops the embedded container instance- Throws:
LifecycleException- if the container cannot be stopped
-
-