Package eu.woolplatform.utils.log
Class LogDelegateFactory
- java.lang.Object
-
- eu.woolplatform.utils.log.LogDelegateFactory
-
- Direct Known Subclasses:
DefaultLogDelegateFactory
public abstract class LogDelegateFactory extends Object
This factory can create log delegates with default settings.
-
-
Constructor Summary
Constructors Constructor Description LogDelegateFactory()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract AbstractLogDelegatecreateLogDelegate()Creates a new log delegate.static LogDelegateFactorygetInstance()Returns the log delegate factory that was set withsetInstance().static voidsetInstance(LogDelegateFactory factory)Sets the log delegate factory that should be returned bygetInstance().
-
-
-
Method Detail
-
getInstance
public static LogDelegateFactory getInstance()
Returns the log delegate factory that was set withsetInstance(). If no factory was set, it will return aDefaultLogDelegateFactory.- Returns:
- the log delegate factory
-
setInstance
public static void setInstance(LogDelegateFactory factory)
Sets the log delegate factory that should be returned bygetInstance().- Parameters:
factory- the factory
-
createLogDelegate
public abstract AbstractLogDelegate createLogDelegate()
Creates a new log delegate.- Returns:
- the log delegate
-
-