Class OSGiGlassFishRuntime
- java.lang.Object
-
- org.glassfish.embeddable.GlassFishRuntime
-
- com.sun.enterprise.glassfish.bootstrap.GlassFishRuntimeDecorator
-
- com.sun.enterprise.glassfish.bootstrap.osgi.OSGiGlassFishRuntime
-
public class OSGiGlassFishRuntime extends GlassFishRuntimeDecorator
This is a special implementation used in non-embedded environment. It assumes that it has launched the framework during bootstrap and hence can stop it upon shutdown. It also creates a specialized GlassFishImpl calledOSGiGlassFishImpl- Author:
- Sanjeeb.Sahoo@Sun.COM
-
-
Constructor Summary
Constructors Constructor Description OSGiGlassFishRuntime(GlassFishRuntime embeddedGfr, org.osgi.framework.launch.Framework framework)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GlassFishnewGlassFish(GlassFishProperties glassfishProperties)Creates a new instance of GlassFish.voidshutdown()Shuts down the Runtime and dispose off all the GlassFish objects created via this Runtime-
Methods inherited from class org.glassfish.embeddable.GlassFishRuntime
bootstrap, bootstrap, bootstrap, newGlassFish, shutdownInternal
-
-
-
-
Constructor Detail
-
OSGiGlassFishRuntime
public OSGiGlassFishRuntime(GlassFishRuntime embeddedGfr, org.osgi.framework.launch.Framework framework)
-
-
Method Detail
-
shutdown
public void shutdown() throws GlassFishExceptionDescription copied from class:GlassFishRuntimeShuts down the Runtime and dispose off all the GlassFish objects created via this Runtime- Overrides:
shutdownin classGlassFishRuntimeDecorator- Throws:
GlassFishException
-
newGlassFish
public GlassFish newGlassFish(GlassFishProperties glassfishProperties) throws GlassFishException
Description copied from class:GlassFishRuntimeCreates a new instance of GlassFish.- Overrides:
newGlassFishin classGlassFishRuntimeDecorator- Parameters:
glassfishProperties- GlassFishProperties used to setup the GlassFish instance- Returns:
- newly instantiated GlassFish object. It will be in
GlassFish.Status.INITstate. - Throws:
GlassFishException
-
-