| Package | Description |
|---|---|
| org.glassfish.embeddable |
Provides classes and interfaces necessary to embed GlassFish and perform
lifecycle operations, application deployments and runtime configurations.
|
| org.glassfish.embeddable.spi |
Provides classes and interfaces necessary to plugin a custom GlassFish runtime.
|
| Modifier and Type | Method and Description |
|---|---|
static GlassFishRuntime |
GlassFishRuntime.bootstrap()
Bootstrap a GlassFishRuntime with default
BootstrapProperties. |
static GlassFishRuntime |
GlassFishRuntime.bootstrap(BootstrapProperties bootstrapProperties)
Bootstrap GlassFish runtime based on runtime configuration passed in the bootstrapProperties object.
|
static GlassFishRuntime |
GlassFishRuntime.bootstrap(BootstrapProperties bootstrapProperties,
ClassLoader cl)
Bootstrap GlassFish runtime based on runtime configuration passed in the bootstrapProperties object.
|
String |
Deployer.deploy(File file,
String... params)
Deploys an application identified by a file.
|
String |
Deployer.deploy(InputStream is,
String... params)
Deploys an application from the specified
InputStream object. |
String |
Deployer.deploy(URI archive,
String... params)
Deploys an application identified by a URI.
|
void |
GlassFish.dispose()
Call this method if you don't need this GlassFish instance any more.
|
CommandRunner |
GlassFish.getCommandRunner()
Gets a CommandRunner instance, using which the user can run asadmin commands.
|
Collection<String> |
Deployer.getDeployedApplications()
Return names of all the deployed applications.
|
Deployer |
GlassFish.getDeployer()
Gets a Deployer instance to deploy an application.
|
<T> T |
GlassFish.getService(Class<T> serviceType)
A service has a service interface and optionally a name.
|
<T> T |
GlassFish.getService(Class<T> serviceType,
String serviceName)
A service has a service interface and optionally a name.
|
GlassFish.Status |
GlassFish.getStatus()
Get the current status of GlassFish.
|
GlassFish |
GlassFishRuntime.newGlassFish()
Create a new instance of GlassFish with default
GlassFishProperties |
abstract GlassFish |
GlassFishRuntime.newGlassFish(GlassFishProperties glassfishProperties)
Creates a new instance of GlassFish.
|
abstract void |
GlassFishRuntime.shutdown()
Shuts down the Runtime and dispose off all the GlassFish objects
created via this Runtime
|
protected static void |
GlassFishRuntime.shutdownInternal() |
void |
GlassFish.start()
Start GlassFish.
|
void |
GlassFish.stop()
Stop GlassFish.
|
void |
Deployer.undeploy(String appName,
String... params)
Undeploys an application from
GlassFish
This method takes a var-arg argument for the undeployment options. |
| Modifier and Type | Method and Description |
|---|---|
GlassFishRuntime |
RuntimeBuilder.build(BootstrapProperties options)
Builds a custom GlassFishRuntime with the supplied bootstrap options
|
Copyright © 2019. All rights reserved.