com.raritantechnologies.searchApp
Class PropertiesConfigurationManager

java.lang.Object
  extended bycom.raritantechnologies.searchApp.ConfigurationManager
      extended bycom.raritantechnologies.searchApp.PropertiesConfigurationManager

public class PropertiesConfigurationManager
extends ConfigurationManager

Implementation of ConfigurationManager that uses a PropertyResourceBundle to set configuration properties.


Developed by Raritan Technologies .

Author:
Ted Sullivan

Field Summary
 
Fields inherited from class com.raritantechnologies.searchApp.ConfigurationManager
DEFAULT_FEDERATOR_CLASS, theScheduler, theSourceMapFactory
 
Constructor Summary
PropertiesConfigurationManager()
           
 
Method Summary
 IQueryProcessor getQueryProcessor(java.lang.String sourceType)
          Returns an instance of an IQueryProcessor for a particular type of search source.
 ISearchFieldMapFactory getSearchFieldMapFactory()
          returns an instance of a SearchFieldMap Factory object.
 ISecurityManager getSecurityManager()
          returns an instance of the ISecurityManager that is used with this configuration.
 ISourceMapFactory getSourceMapFactory()
           
protected  void initialize(java.util.PropertyResourceBundle prb)
           
 
Methods inherited from class com.raritantechnologies.searchApp.ConfigurationManager
addSecurityManager, addSourceMap, addSystemObject, changeBasePath, changeToSysPathSep, createSystemObject, getAbstractSearchField, getBasePath, getConfigPath, getConfigPath, getDebugWriter, getFederatorClass, getInstance, getInstance, getLogger, getLoginPath, getPrb, getScheduler, getSearchFieldMap, getSearchSources, getSecurityManager, getSourceMap, getSourceMap, getStreamFactory, getSysConfigProperty, getSystemObject, getSystemObjects, initializeLog4JLogging, initializeLogger, listSystemProperties, printStackTrace, returnConfiguredObject, setFederatorClass, setStreamFactory, useLog4JLogging, write, writeDebug, writeDebug, writeDebug, writeDebug, writeDebug, writeError, writeError, writeError, writeError, writeError, writeFatal, writeFatal, writeFatal, writeFatal, writeFatal, writeInfo, writeInfo, writeInfo, writeWarning, writeWarning, writeWarning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertiesConfigurationManager

public PropertiesConfigurationManager()
Method Detail

initialize

protected void initialize(java.util.PropertyResourceBundle prb)
Specified by:
initialize in class ConfigurationManager

getQueryProcessor

public IQueryProcessor getQueryProcessor(java.lang.String sourceType)
Returns an instance of an IQueryProcessor for a particular type of search source. Implements this by reading the SourceType tags in the config XML for their "queryProcessor" attribute - these are stored in a local hashtable

Specified by:
getQueryProcessor in class ConfigurationManager
Parameters:
sourceType - Identifies the processor to be used for a particular type of search.

getSecurityManager

public ISecurityManager getSecurityManager()
returns an instance of the ISecurityManager that is used with this configuration. This allows for the security implementation to change.

Specified by:
getSecurityManager in class ConfigurationManager

getSourceMapFactory

public ISourceMapFactory getSourceMapFactory()
Specified by:
getSourceMapFactory in class ConfigurationManager

getSearchFieldMapFactory

public ISearchFieldMapFactory getSearchFieldMapFactory()
returns an instance of a SearchFieldMap Factory object.

Specified by:
getSearchFieldMapFactory in class ConfigurationManager