|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfr.gouv.culture.sdx.utils.configuration.ConfigurationUtils
Created by IntelliJ IDEA. User: rpandey Date: 9 janv. 2004 Time: 13:56:53 To change this template use Options | File Templates.
Constructor Summary | |
ConfigurationUtils()
|
Method Summary | |
static void |
checkConfAttributeValue(java.lang.String attName,
java.lang.String attValue,
java.lang.String attLocation)
Verifies a configuration attribute value, ie it should not be null or an empty String |
static void |
checkConfiguration(org.apache.avalon.framework.configuration.Configuration configuration)
Verifies a configuration object |
static void |
checkContext(org.apache.avalon.framework.context.Context context)
|
static void |
checkLogger(org.apache.avalon.framework.logger.Logger log)
|
static void |
checkServiceManager(org.apache.avalon.framework.service.ServiceManager serviceManager)
|
static FieldList |
configureFieldList(org.apache.avalon.framework.logger.Logger logger,
org.apache.avalon.framework.service.ServiceManager manager,
org.apache.avalon.framework.context.Context context,
java.lang.String id,
org.apache.avalon.framework.configuration.Configuration configuration)
|
static IDGenerator |
configureIDGenerator(org.apache.avalon.framework.logger.Logger logger,
org.apache.avalon.framework.configuration.Configuration configuration)
|
static FieldList |
configureLuceneFieldList(org.apache.avalon.framework.logger.Logger logger,
org.apache.avalon.framework.context.Context context,
FieldList fieldList)
|
static Repository |
createRepository(org.apache.avalon.framework.logger.Logger logger,
org.apache.avalon.framework.context.Context context,
org.apache.avalon.framework.service.ServiceManager manager,
org.apache.avalon.framework.configuration.Configuration repoConf)
Used to create a repository based upon a 'type' attribute |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ConfigurationUtils()
Method Detail |
public static IDGenerator configureIDGenerator(org.apache.avalon.framework.logger.Logger logger, org.apache.avalon.framework.configuration.Configuration configuration) throws org.apache.avalon.framework.configuration.ConfigurationException
org.apache.avalon.framework.configuration.ConfigurationException
public static FieldList configureFieldList(org.apache.avalon.framework.logger.Logger logger, org.apache.avalon.framework.service.ServiceManager manager, org.apache.avalon.framework.context.Context context, java.lang.String id, org.apache.avalon.framework.configuration.Configuration configuration) throws org.apache.avalon.framework.configuration.ConfigurationException
org.apache.avalon.framework.configuration.ConfigurationException
public static FieldList configureLuceneFieldList(org.apache.avalon.framework.logger.Logger logger, org.apache.avalon.framework.context.Context context, FieldList fieldList) throws org.apache.avalon.framework.configuration.ConfigurationException
org.apache.avalon.framework.configuration.ConfigurationException
public static Repository createRepository(org.apache.avalon.framework.logger.Logger logger, org.apache.avalon.framework.context.Context context, org.apache.avalon.framework.service.ServiceManager manager, org.apache.avalon.framework.configuration.Configuration repoConf) throws SDXException, org.apache.avalon.framework.configuration.ConfigurationException
repoConf
- The configuration object made up of an 'repository' element.manager
- The service manager to pass to the repositorycontext
- The context object to pass to the repositorylogger
- The super.getLog() to pass to the repository and for error handling
SDXException
org.apache.avalon.framework.configuration.ConfigurationException
public static void checkConfAttributeValue(java.lang.String attName, java.lang.String attValue, java.lang.String attLocation) throws org.apache.avalon.framework.configuration.ConfigurationException
attName
- The name of the attributeattValue
- The value of the attributeattLocation
- The location of the configuration object
org.apache.avalon.framework.configuration.ConfigurationException
- Thrown if null
or an empty Stringpublic static void checkConfiguration(org.apache.avalon.framework.configuration.Configuration configuration) throws org.apache.avalon.framework.configuration.ConfigurationException
configuration
- The object to verify
org.apache.avalon.framework.configuration.ConfigurationException
- Thrown if the object is nullpublic static void checkLogger(org.apache.avalon.framework.logger.Logger log) throws org.apache.avalon.framework.configuration.ConfigurationException
org.apache.avalon.framework.configuration.ConfigurationException
public static void checkServiceManager(org.apache.avalon.framework.service.ServiceManager serviceManager) throws org.apache.avalon.framework.service.ServiceException
org.apache.avalon.framework.service.ServiceException
public static void checkContext(org.apache.avalon.framework.context.Context context) throws org.apache.avalon.framework.context.ContextException
org.apache.avalon.framework.context.ContextException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |