public final class OSGiGlassFishRuntimeBuilder extends Object implements RuntimeBuilder
Constants.Platform#Felix
,
Constants.Platform#Equinox
,
and Constants.Platform#Knopflerfish
.
It can't handle GenericOSGi platform,
because it reads framework configuration from a framework specific file when it calls
MainHelper.buildStartupContext(java.util.Properties)
.
This class is responsible for
a) setting up OSGi framework,
b) installing glassfish bundles,
c) starting a configured list of bundles
d) obtaining a reference to GlassFishRuntime OSGi service.
Steps #b & #c are handled via BundleProvisioner
.
We specify our provisioning bundle details in the properties object that's used to boostrap
the system. BundleProvisioner installs and starts such bundles,
If caller does not pass in a properly populated properties object, we assume that we are
running against an existing installation of glassfish and set appropriate default values.
This class is registered as a provider of RuntimeBuilder using META-INF/services file.Constructor and Description |
---|
OSGiGlassFishRuntimeBuilder()
Default constructor needed for meta-inf/service lookup to work
|
Modifier and Type | Method and Description |
---|---|
GlassFishRuntime |
build(BootstrapProperties bsProps)
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 OSGiGlassFishRuntimeBuilder()
public GlassFishRuntime build(BootstrapProperties bsProps) throws GlassFishException
RuntimeBuilder
build
in interface RuntimeBuilder
GlassFishException
public boolean handles(BootstrapProperties bsProps)
RuntimeBuilder
handles
in interface RuntimeBuilder
Copyright © 2020. All rights reserved.