Class EmbeddedOSGiGlassFishRuntime
- java.lang.Object
-
- org.glassfish.embeddable.GlassFishRuntime
-
- com.sun.enterprise.glassfish.bootstrap.osgi.EmbeddedOSGiGlassFishRuntime
-
public class EmbeddedOSGiGlassFishRuntime extends GlassFishRuntime
Implementation of GlassFishRuntime in an OSGi environment.- Author:
- Sanjeeb.Sahoo@Sun.COM
-
-
Constructor Summary
Constructors Constructor Description EmbeddedOSGiGlassFishRuntime(org.osgi.framework.BundleContext context)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected GlassFishcreateGlassFish(com.sun.enterprise.module.bootstrap.ModuleStartup gfKernel, org.glassfish.hk2.api.ServiceLocator habitat, Properties gfProps)GlassFishnewGlassFish(GlassFishProperties gfProps)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
-
-
-
-
Method Detail
-
newGlassFish
public GlassFish newGlassFish(GlassFishProperties gfProps) throws GlassFishException
Description copied from class:GlassFishRuntimeCreates a new instance of GlassFish.- Specified by:
newGlassFishin classGlassFishRuntime- Parameters:
gfProps- GlassFishProperties used to setup the GlassFish instance- Returns:
- newly instantiated GlassFish object. It will be in
GlassFish.Status.INITstate. - Throws:
GlassFishException
-
shutdown
public void shutdown() throws GlassFishExceptionDescription copied from class:GlassFishRuntimeShuts down the Runtime and dispose off all the GlassFish objects created via this Runtime- Specified by:
shutdownin classGlassFishRuntime- Throws:
GlassFishException
-
createGlassFish
protected GlassFish createGlassFish(com.sun.enterprise.module.bootstrap.ModuleStartup gfKernel, org.glassfish.hk2.api.ServiceLocator habitat, Properties gfProps) throws GlassFishException
- Throws:
GlassFishException
-
-