Package science.aist.seshat
Class FactoryLoader
- java.lang.Object
-
- science.aist.seshat.FactoryLoader
-
public class FactoryLoader extends Object
Factory Loader class which uses
ServiceLoader
to findLoggerFactory
s.- Since:
- 1.1
- Author:
- Andreas Pointner
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static LoggerFactory
getLoggerFactory()
Uses theServiceLoader
to load aLoggerFactory
instance.
-
-
-
Method Detail
-
getLoggerFactory
public static LoggerFactory getLoggerFactory()
Uses theServiceLoader
to load aLoggerFactory
instance. IfServiceLoader
does not return any instances, theDefaultLoggerFactory
is used. IfServiceLoader
finds multipleLoggerFactory
instances the first instance (ServiceLoader.findFirst()
will be used. Note: The instance of theLoggerFactory
that is received will be cached inside this class, and on further usage this cached instance is used.- Returns:
- the logger factory instance
-
-