|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.glassfish.embeddable.GlassFishRuntime
public abstract class GlassFishRuntime
This is the entry point API to bootstrap GlassFish.
A GlassFishRuntime represents just the runtime environment, i.e., no active services yet. e.g., there won't be any web container started just by creating a GlassFishRuntime object. The services will be activated when GlassFish instance is started by doing omething like:
GlassFishRuntime runtime = GlassFishRuntime.bootstrap(); // no active services
GlassFish glassfish = runtime.newGlassFish();
glassfish.start(); // active services.
| Constructor Summary | |
|---|---|
protected |
GlassFishRuntime()
|
| Method Summary | |
|---|---|
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()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected GlassFishRuntime()
| Method Detail |
|---|
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 runtime
GlassFishException
public 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.
GlassFishException
public abstract void shutdown()
throws GlassFishException
GlassFishException
public GlassFish newGlassFish()
throws GlassFishException
GlassFishProperties
GlassFishException - 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 instance
GlassFish.Status.INIT state.
GlassFishException
protected static void shutdownInternal()
throws GlassFishException
GlassFishException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||