Class EmbeddedOSGiGlassFishImpl
- java.lang.Object
-
- com.sun.enterprise.glassfish.bootstrap.GlassFishDecorator
-
- com.sun.enterprise.glassfish.bootstrap.osgi.EmbeddedOSGiGlassFishImpl
-
- All Implemented Interfaces:
GlassFish
public class EmbeddedOSGiGlassFishImpl extends GlassFishDecorator
A specialized implementation of GlassFish which takes care of calling registering & unregistering GlassFish service from service registry when GlassFish is started and stopped. This object is created byEmbeddedOSGiGlassFishRuntime- Author:
- sanjeeb.sahoo@oracle.com
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.glassfish.embeddable.GlassFish
GlassFish.Status
-
-
Constructor Summary
Constructors Constructor Description EmbeddedOSGiGlassFishImpl(GlassFish decoratedGf, org.osgi.framework.BundleContext bundleContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidstart()Start GlassFish.voidstop()Stop GlassFish.-
Methods inherited from class com.sun.enterprise.glassfish.bootstrap.GlassFishDecorator
dispose, getCommandRunner, getDeployer, getService, getService, getStatus
-
-
-
-
Constructor Detail
-
EmbeddedOSGiGlassFishImpl
public EmbeddedOSGiGlassFishImpl(GlassFish decoratedGf, org.osgi.framework.BundleContext bundleContext)
-
-
Method Detail
-
start
public void start() throws GlassFishExceptionDescription copied from interface:GlassFishStart GlassFish. When this method is called, all the lifecycle (aka startup) services are started. Calling this method while the server is inGlassFish.Status.STARTEDstate is a no-op.- Specified by:
startin interfaceGlassFish- Overrides:
startin classGlassFishDecorator- Throws:
GlassFishException- if server can't be started for some unknown reason.
-
stop
public void stop() throws GlassFishExceptionDescription copied from interface:GlassFishStop GlassFish. When this method is called, all the lifecycle (aka startup) services are stopped. GlassFish can be started again by calling the start method. Calling this method while the server is inGlassFish.Status.STARTEDstate is a no-op.- Specified by:
stopin interfaceGlassFish- Overrides:
stopin classGlassFishDecorator- Throws:
GlassFishException- if server can't be started for some unknown reason.
-
-