Class OSGiGlassFishRuntimeBuilder
- java.lang.Object
-
- com.sun.enterprise.glassfish.bootstrap.osgi.OSGiGlassFishRuntimeBuilder
-
- All Implemented Interfaces:
RuntimeBuilder
public final class OSGiGlassFishRuntimeBuilder extends Object implements RuntimeBuilder
This RuntimeBuilder can only handle GlassFish_Platform of following types:Constants.Platform.Felix,Constants.Platform.Equinox, andConstants.Platform.Knopflerfish. It can't handle GenericOSGi platform, because it reads framework configuration from a framework specific file when it callsMainHelper.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 viaBundleProvisioner. 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.- Author:
- Sanjeeb.Sahoo@Sun.COM
-
-
Constructor Summary
Constructors Constructor Description OSGiGlassFishRuntimeBuilder()Default constructor needed for meta-inf/service lookup to work
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GlassFishRuntimebuild(BootstrapProperties bsProps)Builds a custom GlassFishRuntime with the supplied bootstrap optionsbooleanhandles(BootstrapProperties bsProps)Returns true if this RuntimeBuilder is capable of creating a GlassFishRuntime for the supplied BootstrapProperties
-
-
-
Method Detail
-
build
public GlassFishRuntime build(BootstrapProperties bsProps) throws GlassFishException
Description copied from interface:RuntimeBuilderBuilds a custom GlassFishRuntime with the supplied bootstrap options- Specified by:
buildin interfaceRuntimeBuilder- Returns:
- Throws:
GlassFishException
-
handles
public boolean handles(BootstrapProperties bsProps)
Description copied from interface:RuntimeBuilderReturns true if this RuntimeBuilder is capable of creating a GlassFishRuntime for the supplied BootstrapProperties- Specified by:
handlesin interfaceRuntimeBuilder- Returns:
-
-