public abstract class GlassFishRuntime extends Object
GlassFishRuntime runtime = GlassFishRuntime.bootstrap(); // no active services
GlassFish glassfish = runtime.newGlassFish();
glassfish.start(); // active services.
| Modifier | Constructor and Description |
|---|---|
protected |
GlassFishRuntime() |
| Modifier and Type | Method and Description |
|---|---|
static GlassFishRuntime |
bootstrap()
Bootstrap a GlassFishRuntime with default
BootstrapProperties. |
static GlassFishRuntime |
bootstrap(BootstrapProperties bootstrapProperties)
Bootstrap GlassFish runtime based on runtime configuration passed in the bootstrapProperties object.
|
static GlassFishRuntime |
bootstrap(BootstrapProperties bootstrapProperties,
ClassLoader cl)
Bootstrap GlassFish runtime based on runtime configuration passed in the bootstrapProperties object.
|
GlassFish |
newGlassFish()
Create a new instance of GlassFish with default
GlassFishProperties |
abstract GlassFish |
newGlassFish(GlassFishProperties glassfishProperties)
Creates a new instance of GlassFish.
|
abstract void |
shutdown()
Shuts down the Runtime and dispose off all the GlassFish objects
created via this Runtime
|
protected static void |
shutdownInternal() |
public static GlassFishRuntime bootstrap() throws GlassFishException
BootstrapProperties.GlassFishException - if the GlassFishRuntime is already bootstrapped.public static GlassFishRuntime bootstrap(BootstrapProperties bootstrapProperties) throws GlassFishException
bootstrap(BootstrapProperties , ClassLoader) with null as second argument.bootstrapProperties - BootstrapProperties used to setup the runtimeGlassFishExceptionpublic static GlassFishRuntime bootstrap(BootstrapProperties bootstrapProperties, ClassLoader cl) throws GlassFishException
bootstrapProperties - BootstrapProperties used to setup the runtimecl - ClassLoader used as parent loader by GlassFish modules. If null is passed, the class loader
of this class is used.GlassFishExceptionpublic abstract void shutdown()
throws GlassFishException
GlassFishExceptionpublic GlassFish newGlassFish() throws GlassFishException
GlassFishPropertiesGlassFishException - If at all fails to create a new GlassFish instance.public abstract GlassFish newGlassFish(GlassFishProperties glassfishProperties) throws GlassFishException
glassfishProperties - GlassFishProperties used to setup the GlassFish instanceGlassFish.Status.INIT state.GlassFishExceptionprotected static void shutdownInternal()
throws GlassFishException
GlassFishExceptionCopyright © 2013. All Rights Reserved.