public class Bootstrap extends PluginLifeCycle
| Modifier and Type | Field and Description |
|---|---|
protected java.util.logging.Logger |
log
.
|
| Constructor and Description |
|---|
Bootstrap(java.lang.ClassLoader baseLoader)
Create a bootstrap instance with the base classloader and an empty and unmodifiable attribute map.
|
| Modifier and Type | Method and Description |
|---|---|
Bootstrap |
addToCmdPath(java.io.File path)
Add a command path directory.
|
Bootstrap |
addToCmdPath(FSDriver<?> driver)
Add a command path driver.
|
Bootstrap |
addToCmdPath(Path path)
Add a command path directory.
|
Bootstrap |
addToConfPath(java.io.File path)
Add a configuration path directory.
|
Bootstrap |
addToConfPath(FSDriver<?> driver)
Add a configuration path driver.
|
Bootstrap |
addToConfPath(Path path)
Add a configuration path.
|
void |
bootstrap()
Trigger the boostrap.
|
void |
setAttributes(java.util.Map<java.lang.String,java.lang.Object> attributes)
Replaces the attributes to use, the new attributes map will be used as is and not copied.
|
void |
shutdown() |
getConfig, getContext, setConfig, start, stoppublic Bootstrap(java.lang.ClassLoader baseLoader)
throws java.lang.NullPointerException
baseLoader - the base classloader crash will usejava.lang.NullPointerException - if the loader argument is nullpublic void setAttributes(java.util.Map<java.lang.String,java.lang.Object> attributes)
attributes - the attribute mappublic Bootstrap addToConfPath(FSDriver<?> driver) throws java.lang.NullPointerException
driver - the configuration driverjava.lang.NullPointerException - when the driver is nullpublic Bootstrap addToConfPath(java.io.File path) throws java.lang.NullPointerException, java.io.IOException
path - the configuration pathjava.lang.NullPointerException - when the path argument is nulljava.io.IOException - any io exceptionpublic Bootstrap addToConfPath(Path path) throws java.lang.NullPointerException, java.io.IOException, java.net.URISyntaxException
path - the configuration pathjava.lang.NullPointerException - when the path argument is nulljava.io.IOException - any io exceptionjava.net.URISyntaxException - any uri syntax exceptionpublic Bootstrap addToCmdPath(FSDriver<?> driver) throws java.lang.NullPointerException
driver - the command driverjava.lang.NullPointerException - when the driver is nullpublic Bootstrap addToCmdPath(java.io.File path) throws java.lang.NullPointerException, java.io.IOException
path - the command pathjava.lang.NullPointerException - when the path argument is nulljava.io.IOException - any io exceptionpublic Bootstrap addToCmdPath(Path path) throws java.lang.NullPointerException, java.io.IOException, java.net.URISyntaxException
path - the command pathjava.lang.NullPointerException - when the path argument is nulljava.io.IOException - any io exceptionjava.net.URISyntaxException - any uri syntax exceptionpublic void bootstrap()
throws java.lang.Exception
java.lang.Exception - any exception that would prevent the bootstrappublic void shutdown()
Copyright © 2014 eXo Platform SAS. All Rights Reserved.