Package org.glassfish.embeddable
Class BootstrapProperties
java.lang.Object
org.glassfish.embeddable.BootstrapProperties
Encapsulates the set of properties required to bootstrap GlassFishRuntime.
... GlassFishRuntime runtime = GlassFishRuntime.bootstrap(new BootstrapProperties()); GlassFish glassfish = runtime.newGlassFish(glassFishProperties); ...
- Author:
- bhavanishankar@dev.java.net, Prasad.Subramanian@Sun.COM
-
Constructor Summary
ConstructorsConstructorDescriptionCreate BootstrapProperties with default properties.BootstrapProperties(Properties props) Create BootstrapProperties with custom properties. -
Method Summary
Modifier and TypeMethodDescriptionGet the location installation root set usingsetInstallRoot(java.lang.String)Get the underlying Properties object which backs this BootstrapProperties.getProperty(String key) Get the value of the property with the specified key.voidsetInstallRoot(String installRoot) Optionally set the installation root using which the GlassFish should run.voidsetProperty(String key, String value) Set any custom bootstrap property.toString()
-
Constructor Details
-
BootstrapProperties
public BootstrapProperties()Create BootstrapProperties with default properties. -
BootstrapProperties
Create BootstrapProperties with custom properties. This method does not take a copy of the passed in properties object; instead it just maintains a reference to it, so all semantics of "pass-by-reference" applies. Custom properties can include GlassFish_Platform, com.sun.aas.installRoot, com.sun.aas.installRootURI Custom properties can also include additional properties which are required for the plugged inRuntimeBuilder(if any)- Parameters:
props- Properties object which will back this BootstrapProperties object.
-
-
Method Details
-
getProperties
Get the underlying Properties object which backs this BootstrapProperties. If getProperties().setProperty(key,value) is called, then it will add a property to this bootstrap properties.- Returns:
- The Properties object that is backing this BootstrapProperties.
-
setInstallRoot
Optionally set the installation root using which the GlassFish should run.- Parameters:
installRoot- Location of installation root.
-
getInstallRoot
Get the location installation root set usingsetInstallRoot(java.lang.String)- Returns:
- Location of installation root set using
setInstallRoot(java.lang.String)
-
setProperty
Set any custom bootstrap property. May be required for the plugged inRuntimeBuilder(if any)- Parameters:
key- the key to be placed into this bootstrap properties.value- the value corresponding to the key.
-
getProperty
Get the value of the property with the specified key.- Parameters:
key- the property key- Returns:
- value of the property for the specified key, null if there is no such property.
-
toString
-