com.esf.core.system.bootstrap.service
Interface IBootstrapService


public interface IBootstrapService

A service for managing ESF bootstrapping.

Author:
eurotech CONFIGURATION Configuration will be accepted in the form of key/value pairs. The key/value pairs are strictly defined here: CONFIG_ENTRY -> KEY + "=" + VALUE KEY -> (name of the specified service) VALUE -> LOG_LEVEL_DUMP | LOG_LEVEL_DEBUG | LOG_LEVEL_INFO | LOG_LEVEL_WARNING | LOG_LEVEL_ERROR | LOG_LEVEL_NONE EXAMPLE: com_esf_core_system_monitor_service=LOG_LEVEL_DEBUG com_esf_device_ethernet_service=LOG_LEVEL_INFO

Field Summary
static java.lang.String SERVICE_NAME
           
 
Method Summary
 void findAndLoadBundle(java.lang.String bundleName)
           
 java.lang.String[] getFailedToLoadBundles()
          returns a list of unsuccessfully loaded bundles that the IBaseBundleLoaderService attempted to load
 java.lang.String[] getLoadedBundles()
          returns a list of successfully loaded bundles that were loaded using the IBaseBundleLoaderService
 java.lang.String getLogLevel(java.lang.String bundleSymbolicName)
          gets the log level as set in the services.xml file
 

Field Detail

SERVICE_NAME

public static final java.lang.String SERVICE_NAME
Method Detail

getLoadedBundles

public java.lang.String[] getLoadedBundles()
returns a list of successfully loaded bundles that were loaded using the IBaseBundleLoaderService

Returns:
an array of Strings representing the bundle names that were loaded at ESF startup

getFailedToLoadBundles

public java.lang.String[] getFailedToLoadBundles()
returns a list of unsuccessfully loaded bundles that the IBaseBundleLoaderService attempted to load

Returns:
an array of Strings representing the bundle names that failed to load even though they were defined in the services.xml file to be loaded

getLogLevel

public java.lang.String getLogLevel(java.lang.String bundleSymbolicName)
gets the log level as set in the services.xml file

Parameters:
bundleSymbolicName - the symbolic name of the bundle to get the log level of
Returns:
a String representing the log level currently defined

findAndLoadBundle

public void findAndLoadBundle(java.lang.String bundleName)


Copyright © 2009 Eurotech Inc. All rights reserved.