Package de.mnl.osgi.lf4osgi.core
Class AbstractLoggerFacade<T extends LoggerFacade>
- java.lang.Object
-
- de.mnl.osgi.lf4osgi.core.AbstractLoggerFacade<T>
-
- All Implemented Interfaces:
LoggerFacade
- Direct Known Subclasses:
Lf4OsgiLogger
public abstract class AbstractLoggerFacade<T extends LoggerFacade> extends Object implements LoggerFacade
A base class for logger facades.
-
-
Constructor Summary
Constructors Constructor Description AbstractLoggerFacade(LoggerGroup group, String name)
Instantiates a new logger facade.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected Bundle
getBundle()
Gets the bundle.String
getName()
Gets the name.abstract void
loggerFactoryUpdated(LoggerFactory factory)
Called when the logger factory changes.
-
-
-
Constructor Detail
-
AbstractLoggerFacade
public AbstractLoggerFacade(LoggerGroup group, String name)
Instantiates a new logger facade.A new logger is automatically registered with the
LoggerFacadeManager
.- Parameters:
group
- the logger groupname
- the name
-
-
Method Detail
-
loggerFactoryUpdated
public abstract void loggerFactoryUpdated(LoggerFactory factory)
Called when the logger factory changes. Derived classes must update the logger that they had previously obtained.- Specified by:
loggerFactoryUpdated
in interfaceLoggerFacade
- Parameters:
factory
- the factory
-
-