Class LoggerFactory
- java.lang.Object
-
- de.uni_trier.wi2.procake.utils.logger.LoggerFactory
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static booleanbind(LoggerFactoryObject implementation)booleanbind(Object implementation)Bind an implementation to the factory.static LoggergetLogger(String component)voidreset()This method has to be implemented by every factory in order to allow a proper restart of ProCAKE.static booleanunbind(LoggerFactoryObject implementation)booleanunbind(Object implementation)Unbinds an implementation from the factory.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.uni_trier.wi2.procake.utils.composition.Factory
addParameter, postInit
-
-
-
-
Method Detail
-
bind
public static boolean bind(LoggerFactoryObject implementation)
-
getLogger
public static Logger getLogger(String component)
- Returns:
- Returns the
Loggerof the specified component.
-
unbind
public static boolean unbind(LoggerFactoryObject implementation)
-
reset
public void reset()
Description copied from interface:FactoryThis method has to be implemented by every factory in order to allow a proper restart of ProCAKE. For example, this method might reset the default factory object or other stateful variables.
-
bind
public boolean bind(Object implementation)
Description copied from interface:FactoryBind an implementation to the factory.- Specified by:
bindin interfaceFactory- Parameters:
implementation- The object to bind.- Returns:
trueif the factory accept the implementation, otherwisefalse.- See Also:
Factory.bind(java.lang.Object)
-
unbind
public boolean unbind(Object implementation)
Description copied from interface:FactoryUnbinds an implementation from the factory.- Specified by:
unbindin interfaceFactory- Parameters:
implementation- The object to unbind.- Returns:
trueif the factory accept the implementation, otherwisefalse.- See Also:
Factory.unbind(java.lang.Object)
-
-