|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Core platform service that provides access to file-system based configuration information. System registry configuration should be loaded through the RegistryDbLoader.
| Method Summary | |
void |
addCustomProperties(java.lang.String configName,
java.io.File customConfigFile,
boolean mustExist)
Provision for implementations of ApplicationLauncher
to provide non-relative locations for client manipulated configuration properties. |
void |
configServiceInit(java.io.File blackboardRootDir,
java.util.Properties bbServicesProps)
|
java.io.File |
createTempFile()
Creates a temp file in the Bb temp file space. |
java.util.Properties |
getBbProperties()
Returns aggregate of bb-config.properties and properties from active service manager config. |
java.lang.String |
getBbProperty(java.lang.String key)
Shortcut to return an individual property from bb-config.properties or from this service manager's config file. |
java.lang.String |
getBbProperty(java.lang.String key,
java.lang.String defaultIfNotFound)
Shortcut to return an individual property from bb-config.properties or from this service manager's config file. |
java.io.File |
getBbServicesDir()
Deprecated. |
java.io.File |
getBlackboardDir()
getBlackboardDir |
java.io.File |
getConfiguredFile(java.lang.String propertyName,
boolean mustExist)
Utility for service implementations to get a file path from the configured properties. |
java.io.File[] |
getConfiguredFiles(java.lang.String propertyName,
boolean mustExist)
Utility for service implementations to get a file list from the configured properties. |
java.util.Properties |
getCustomProperties(java.lang.String configName,
boolean mustExist)
Provision for implementations of ApplicationLauncher
to provide non-relative locations for client manipulated configuration properties. |
java.io.File |
getTempDir()
getTempDir |
java.io.File |
resolveFile(java.lang.String relativePath)
Resolves the specified file. |
java.io.File |
resolveFile(java.lang.String relativePath,
boolean bMustExist)
Resolves the specified file. |
| Method Detail |
public void configServiceInit(java.io.File blackboardRootDir,
java.util.Properties bbServicesProps)
throws InitializationException
InitializationExceptionpublic java.util.Properties getBbProperties()
public java.lang.String getBbProperty(java.lang.String key)
public java.lang.String getBbProperty(java.lang.String key,
java.lang.String defaultIfNotFound)
public java.io.File getBlackboardDir()
public java.io.File resolveFile(java.lang.String relativePath)
throws InitializationException
InitializationException - if file does not exist
public java.io.File resolveFile(java.lang.String relativePath,
boolean bMustExist)
throws InitializationException
InitializationException - if file does not existpublic java.io.File getBbServicesDir()
public java.io.File getTempDir()
public java.io.File createTempFile()
throws java.io.IOException
java.io.IOException
public java.io.File getConfiguredFile(java.lang.String propertyName,
boolean mustExist)
throws InitializationException
InitializationException - if the property is not found in the
config file or if the requested file does not exist when required
(mustExist == true ).
public java.io.File[] getConfiguredFiles(java.lang.String propertyName,
boolean mustExist)
throws InitializationException
InitializationException - if the property is not found in the
config file or if the requested file does not exist when required
(mustExist == true ).
public void addCustomProperties(java.lang.String configName,
java.io.File customConfigFile,
boolean mustExist)
throws InitializationException
ApplicationLauncher
to provide non-relative locations for client manipulated configuration properties.
configName - String designating unique to identify custom property
collection.customConfigFile - File designation for location of property
file.mustExist - boolean> flag denoting if proper loading of
file is required.
InitializationException - if the requested file does not exist when
required (mustExist == true ).
public java.util.Properties getCustomProperties(java.lang.String configName,
boolean mustExist)
throws InitializationException
ApplicationLauncher
to provide non-relative locations for client manipulated configuration properties.
configName - String designating unique to identify custom property
collection.mustExist - boolean flag denoting if proper loading of file
is required.
Properties Custom properties relevant to Application
implementation.
InitializationException - if the requested property designation does
not exist when required (mustExist == true ).
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||