Package edu.uiuc.ncsa.security.core.util
Class LoggingConfigLoader<T extends AbstractEnvironment>
- java.lang.Object
-
- edu.uiuc.ncsa.security.core.util.LoggingConfigLoader<T>
-
- All Implemented Interfaces:
ConfigurationLoader<T>,Version,Serializable
- Direct Known Subclasses:
DBConfigLoader,TestConfigLoader
public abstract class LoggingConfigLoader<T extends AbstractEnvironment> extends Object implements Serializable, Version, ConfigurationLoader<T>
Created by Jeff Gaynor
on 6/18/12 at 2:13 PM- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected classLoggingConfigLoader.MyLoggerProvider
-
Field Summary
Fields Modifier and Type Field Description protected org.apache.commons.configuration.tree.ConfigurationNodecnprotected MetaDebugUtildebuggerprotected javax.inject.Provider<MyLoggingFacade>loggerProviderprotected MyLoggingFacademyLogger-
Fields inherited from interface edu.uiuc.ncsa.security.core.Version
VERSION_NUMBER
-
-
Constructor Summary
Constructors Constructor Description LoggingConfigLoader(String defaultFile, String defaultName, org.apache.commons.configuration.tree.ConfigurationNode node, MyLoggingFacade logger)LoggingConfigLoader(org.apache.commons.configuration.tree.ConfigurationNode node)LoggingConfigLoader(org.apache.commons.configuration.tree.ConfigurationNode node, MyLoggingFacade logger)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected voiddebug(Object infoString)MetaDebugUtilgetDebugger()Checks for and sets up the debugging for this loader.javax.inject.Provider<MyLoggingFacade>getLoggerProvider()MyLoggingFacadegetMyLogger()abstract StringgetVersionString()Returns a string that identifies the version of this server.protected voidinfo(Object infoString)voidsetLoggerProvider(javax.inject.Provider<MyLoggingFacade> loggerProvider)protected voidwarn(Object infoString)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface edu.uiuc.ncsa.security.core.util.ConfigurationLoader
createInstance, getConstants, load
-
-
-
-
Field Detail
-
cn
protected org.apache.commons.configuration.tree.ConfigurationNode cn
-
loggerProvider
protected javax.inject.Provider<MyLoggingFacade> loggerProvider
-
myLogger
protected MyLoggingFacade myLogger
-
debugger
protected MetaDebugUtil debugger
-
-
Constructor Detail
-
LoggingConfigLoader
public LoggingConfigLoader(String defaultFile, String defaultName, org.apache.commons.configuration.tree.ConfigurationNode node, MyLoggingFacade logger)
-
LoggingConfigLoader
public LoggingConfigLoader(org.apache.commons.configuration.tree.ConfigurationNode node, MyLoggingFacade logger)
-
LoggingConfigLoader
public LoggingConfigLoader(org.apache.commons.configuration.tree.ConfigurationNode node)
-
-
Method Detail
-
getVersionString
public abstract String getVersionString()
Returns a string that identifies the version of this server. This will be automatically written to the log as one of the first bootup messages.- Returns:
-
getLoggerProvider
public javax.inject.Provider<MyLoggingFacade> getLoggerProvider()
-
setLoggerProvider
public void setLoggerProvider(javax.inject.Provider<MyLoggingFacade> loggerProvider)
-
getMyLogger
public MyLoggingFacade getMyLogger()
-
getDebugger
public MetaDebugUtil getDebugger()
Checks for and sets up the debugging for this loader. Once this is set up, you may have to tell any environments that use it that debugging is enabled. Note that this is not used in this module, but in OA4MP proper, but has to b here for visibility later.
-
warn
protected void warn(Object infoString)
-
info
protected void info(Object infoString)
-
debug
protected void debug(Object infoString)
-
-