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:
- [email protected]
-
-
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 GlassFish
newGlassFish(GlassFishProperties glassfishProperties)
Creates a new instance of GlassFish.void
shutdown()
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 GlassFishException
Description copied from class:GlassFishRuntime
Shuts down the Runtime and dispose off all the GlassFish objects created via this Runtime- Overrides:
shutdown
in classGlassFishRuntimeDecorator
- Throws:
GlassFishException
-
newGlassFish
public GlassFish newGlassFish(GlassFishProperties glassfishProperties) throws GlassFishException
Description copied from class:GlassFishRuntime
Creates a new instance of GlassFish.- Overrides:
newGlassFish
in classGlassFishRuntimeDecorator
- Parameters:
glassfishProperties
- GlassFishProperties used to setup the GlassFish instance- Returns:
- newly instantiated GlassFish object. It will be in
GlassFish.Status.INIT
state. - Throws:
GlassFishException
-
-