public class EmbeddedOSGiGlassFishRuntimeBuilder extends Object implements RuntimeBuilder
RuntimeBuilder is responsible for setting up a GlassFishRuntime
when user has a regular installation of GlassFish and they want to embed GlassFish in an existing OSGi runtime.
It sets up the runtime like this:
1. Installs GlassFish modules.
2. Starts a list of GlassFish bundles.
3. Registers an instance of GlassFishRuntime as service.
build(org.glassfish.embeddable.BootstrapProperties),
handles(org.glassfish.embeddable.BootstrapProperties)| Constructor and Description |
|---|
EmbeddedOSGiGlassFishRuntimeBuilder() |
| Modifier and Type | Method and Description |
|---|---|
GlassFishRuntime |
build(BootstrapProperties bootstrapProperties)
Builds a custom GlassFishRuntime with the supplied bootstrap options
|
boolean |
handles(BootstrapProperties bsProps)
Returns true if this RuntimeBuilder is capable of creating a GlassFishRuntime
for the supplied BootstrapProperties
|
public boolean handles(BootstrapProperties bsProps)
RuntimeBuilderhandles in interface RuntimeBuilderpublic GlassFishRuntime build(BootstrapProperties bootstrapProperties) throws GlassFishException
RuntimeBuilderbuild in interface RuntimeBuilderGlassFishExceptionCopyright © 2019. All rights reserved.