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:
- [email protected]
-
-
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 void
start()
Start GlassFish.void
stop()
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 GlassFishException
Description copied from interface:GlassFish
Start GlassFish. When this method is called, all the lifecycle (aka startup) services are started. Calling this method while the server is inGlassFish.Status.STARTED
state is a no-op.- Specified by:
start
in interfaceGlassFish
- Overrides:
start
in classGlassFishDecorator
- Throws:
GlassFishException
- if server can't be started for some unknown reason.
-
stop
public void stop() throws GlassFishException
Description copied from interface:GlassFish
Stop 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.STARTED
state is a no-op.- Specified by:
stop
in interfaceGlassFish
- Overrides:
stop
in classGlassFishDecorator
- Throws:
GlassFishException
- if server can't be started for some unknown reason.
-
-