|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IBootstrapService
A service for managing ESF bootstrapping.
Configuration will be accepted in the form of an XML file. The XML file to be used is
by default in ESF_HOME/configuration/.esf/com.esf.core.system.bootstap/services.xml. The form
of the XML file is as follows:
Field Summary | |
---|---|
static java.lang.String |
SERVICE_NAME
Reports the class name representing this interface. |
Method Summary | |
---|---|
void |
addBundle(java.lang.String bundleName,
int logLevel)
adds a bundle to the bootstrap service.xml file. |
void |
findAndLoadBundle(java.lang.String bundleName,
java.lang.String logLevel)
finds and loads a specific bundle from the default bundlefiles directory. |
void |
findAndLoadBundle(java.lang.String bundleName,
java.lang.String bundleDirectoryName,
java.lang.String logLevel)
finds and loads a specific bundle from the specified directory. |
java.lang.String[] |
getFailedToLoadBundles()
returns a list of unsuccessfully loaded bundles that the @IBootstrapService attempted to load |
java.lang.String[] |
getLoadedBundles()
returns a list of successfully loaded bundles that were loaded using the @IBootstrapService |
java.lang.String[] |
getLoadedDropinBundles()
returns a list of successfully loaded 'dropin' bundles that were loaded using the @IBootstrapService |
java.lang.String[] |
getLoadedJunitBundles()
returns a list of successfully loaded 'junit' bundles that were loaded using the @IBootstrapService |
java.lang.String |
getLogLevel(java.lang.String bundleSymbolicName)
gets the log level as set in the services.xml file |
void |
startBundle(java.lang.String directory,
java.lang.String bundleName)
starts a bundle that has been previously loaded via the Bootstrap service |
void |
stopBundle(java.lang.String bundleSymbolicName)
stops a bundle that has been previously started via the Bootstrap service |
void |
unloadBundle(java.lang.String bundleSymbolicName)
unloads (uninstalls) a bundle that has been previously installed to the framework. |
Field Detail |
---|
static final java.lang.String SERVICE_NAME
Method Detail |
---|
java.lang.String[] getLoadedBundles()
java.lang.String[] getLoadedDropinBundles()
java.lang.String[] getLoadedJunitBundles()
java.lang.String[] getFailedToLoadBundles()
java.lang.String getLogLevel(java.lang.String bundleSymbolicName)
bundleSymbolicName
- the symbolic name of the bundle to get the log level of
void findAndLoadBundle(java.lang.String bundleName, java.lang.String logLevel)
bundleName
- the symbolic name of the bundle to find and loadlogLevel
- the ESF log level to usevoid findAndLoadBundle(java.lang.String bundleName, java.lang.String bundleDirectoryName, java.lang.String logLevel)
bundleName
- the symbolic name of the bundle to find and loadbundleDirectoryName
- the name of the directory where the bundle resideslogLevel
- the ESF log level to usevoid startBundle(java.lang.String directory, java.lang.String bundleName)
directory
- the directory where the bundle is locatedbundleName
- the name of the bundlevoid stopBundle(java.lang.String bundleSymbolicName)
bundleSymbolicName
- the symbolic name of the bundle to startvoid unloadBundle(java.lang.String bundleSymbolicName)
bundleSymbolicName
- the symbolic name of the bundle to uninstallvoid addBundle(java.lang.String bundleName, int logLevel)
bundleName
- the name of the bundle to addlogLevel
- the ESF log level to use
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |