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 class
LoggingConfigLoader.MyLoggerProvider
-
Field Summary
Fields Modifier and Type Field Description protected org.apache.commons.configuration.tree.ConfigurationNode
cn
protected MetaDebugUtil
debugger
protected javax.inject.Provider<MyLoggingFacade>
loggerProvider
protected MyLoggingFacade
myLogger
-
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 void
debug(Object infoString)
MetaDebugUtil
getDebugger()
Checks for and sets up the debugging for this loader.javax.inject.Provider<MyLoggingFacade>
getLoggerProvider()
MyLoggingFacade
getMyLogger()
abstract String
getVersionString()
Returns a string that identifies the version of this server.protected void
info(Object infoString)
void
setLoggerProvider(javax.inject.Provider<MyLoggingFacade> loggerProvider)
protected void
warn(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)
-
-