public class StrolchBootstrapper extends DefaultHandler
| Modifier and Type | Field and Description |
|---|---|
static String |
APP_VERSION_PROPERTIES |
static String |
FILE_BOOTSTRAP |
static String |
PATH_CONFIG |
static String |
PATH_DATA |
static String |
PATH_TEMP |
| Constructor and Description |
|---|
StrolchBootstrapper(Class<?> appClass)
Bootstrap Strolch using the given
Class from which to get the APP_VERSION_PROPERTIES resource
stream. |
StrolchBootstrapper(StrolchVersion appVersion)
Bootstrap Strolch using the given app
StrolchVersion. |
| Modifier and Type | Method and Description |
|---|---|
void |
characters(char[] ch,
int start,
int length) |
void |
endElement(String uri,
String localName,
String qName) |
void |
setEnvironmentOverride(String environmentOverride) |
StrolchAgent |
setupByBoostrapFile(Class<?> clazz,
File bootstrapFile)
Set up Strolch by evaluating the environment from
StrolchEnvironment.getEnvironmentFromResourceEnv(Class)
and then delegating to setupByBoostrapFile(String, File) |
StrolchAgent |
setupByBoostrapFile(Class<?> clazz,
InputStream bootstrapFile)
Set up Strolch by evaluating the environment from
StrolchEnvironment.getEnvironmentFromResourceEnv(Class)
and then delegating to setupByBoostrapFile(String, File) |
StrolchAgent |
setupByBoostrapFile(String environment,
File bootstrapFile)
Set up Strolch by loading the given bootstrap file for configuration
|
StrolchAgent |
setupByBoostrapFile(String environment,
InputStream bootstrapFile)
Set up Strolch by loading the given bootstrap file for configuration
|
StrolchAgent |
setupByCopyingRoot(String environment,
File rootSrcPath,
File rootDstPath) |
StrolchAgent |
setupByRoot(String environment,
File rootPath) |
StrolchAgent |
setupByUserDir(String environment) |
void |
startElement(String uri,
String localName,
String qName,
Attributes attributes) |
endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warningpublic static final String APP_VERSION_PROPERTIES
public static final String FILE_BOOTSTRAP
public static final String PATH_CONFIG
public static final String PATH_DATA
public static final String PATH_TEMP
public StrolchBootstrapper(StrolchVersion appVersion)
Bootstrap Strolch using the given app StrolchVersion. This version is used for information on the code
base from which the agent is instantiated.
appVersion - public StrolchBootstrapper(Class<?> appClass)
Bootstrap Strolch using the given Class from which to get the APP_VERSION_PROPERTIES resource
stream. The version is used for information on the code base from which the agent is instantiated.
appClass - the class where the APP_VERSION_PROPERTIES resource residespublic void setEnvironmentOverride(String environmentOverride)
public StrolchAgent setupByUserDir(String environment)
public StrolchAgent setupByRoot(String environment, File rootPath)
public StrolchAgent setupByCopyingRoot(String environment, File rootSrcPath, File rootDstPath)
public StrolchAgent setupByBoostrapFile(Class<?> clazz, File bootstrapFile)
StrolchEnvironment.getEnvironmentFromResourceEnv(Class)
and then delegating to setupByBoostrapFile(String, File)clazz - the class from which to load the resource as streambootstrapFile - the bootstrap file to loadpublic StrolchAgent setupByBoostrapFile(Class<?> clazz, InputStream bootstrapFile)
StrolchEnvironment.getEnvironmentFromResourceEnv(Class)
and then delegating to setupByBoostrapFile(String, File)clazz - the class from which to load the resource as streambootstrapFile - the input stream to the bootstrap file to loadpublic StrolchAgent setupByBoostrapFile(String environment, File bootstrapFile)
environment - the environment to load from the boostrap filebootstrapFile - the bootstrap file to loadpublic StrolchAgent setupByBoostrapFile(String environment, InputStream bootstrapFile)
environment - the environment to load from the boostrap filebootstrapFile - the input stream to the bootstrap file to loadpublic void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException
startElement in interface ContentHandlerstartElement in class DefaultHandlerSAXExceptionpublic void endElement(String uri, String localName, String qName) throws SAXException
endElement in interface ContentHandlerendElement in class DefaultHandlerSAXExceptionpublic void characters(char[] ch,
int start,
int length)
throws SAXException
characters in interface ContentHandlercharacters in class DefaultHandlerSAXExceptionCopyright © 2011–2016 Strolch. All rights reserved.