org.neo4j.kernel.logging
Class LogbackWeakDependency

java.lang.Object
  extended by org.neo4j.kernel.logging.LogbackWeakDependency

public class LogbackWeakDependency
extends Object

This class is here since kernel has a weak dependency on logback, i.e. it will be used if available, otherwise a fallback will transparently be used in its place. So even if some other classes this class may refer to are available at compile time, it cannot be written in a way that assumes them being there. For example it cannot import those classes, but should resolve them by reflection instead.


Field Summary
static Function<Config,Logging> DEFAULT_TO_CLASSIC
           
static Function<Config,Object> NEW_LOGGER_CONTEXT
           
static Function<Config,Object> STATIC_LOGGER_CONTEXT
           
 
Constructor Summary
LogbackWeakDependency()
           
 
Method Summary
 Logging tryLoadLogbackService(Config config, Function<Config,Logging> otherwiseDefaultTo)
           
 Logging tryLoadLogbackService(Config config, Function<Config,Object> loggerContextGetter, Function<Config,Logging> otherwiseDefaultTo)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_TO_CLASSIC

public static final Function<Config,Logging> DEFAULT_TO_CLASSIC

NEW_LOGGER_CONTEXT

public static final Function<Config,Object> NEW_LOGGER_CONTEXT

STATIC_LOGGER_CONTEXT

public static final Function<Config,Object> STATIC_LOGGER_CONTEXT
Constructor Detail

LogbackWeakDependency

public LogbackWeakDependency()
Method Detail

tryLoadLogbackService

public Logging tryLoadLogbackService(Config config,
                                     Function<Config,Object> loggerContextGetter,
                                     Function<Config,Logging> otherwiseDefaultTo)

tryLoadLogbackService

public Logging tryLoadLogbackService(Config config,
                                     Function<Config,Logging> otherwiseDefaultTo)


Copyright © 2002-2013 The Neo4j Graph Database Project. All Rights Reserved.