TrueUpdate Artifact Implementation Maven 0.1.6

net.java.trueupdate.artifact.impl.maven
Class LegacySlf4jLoggerFactory

java.lang.Object
  extended by net.java.trueupdate.artifact.impl.maven.LegacySlf4jLoggerFactory
All Implemented Interfaces:
org.eclipse.aether.spi.locator.Service, org.eclipse.aether.spi.log.LoggerFactory

public final class LegacySlf4jLoggerFactory
extends Object
implements org.eclipse.aether.spi.log.LoggerFactory, org.eclipse.aether.spi.locator.Service

A logger factory that delegates to Slf4J logging. This is based on the original org.eclipse.aether.internal.impl.Slf4jLoggerFactory and has been patched to work with SLF4J API versions prior to 1.6.0, as endorsed by Glassfish Embedded 3.1.1.

Author:
Sonatype, Inc (initial API and implementation), Christian Schlichtherle (edit to use SLF4J API < 1.6.0)

Field Summary
static boolean AVAILABLE
           
 
Constructor Summary
LegacySlf4jLoggerFactory()
           
 
Method Summary
 org.eclipse.aether.spi.log.Logger getLogger(String name)
           
 void initService(org.eclipse.aether.spi.locator.ServiceLocator locator)
           
 LegacySlf4jLoggerFactory setLoggerFactory(org.slf4j.ILoggerFactory factory)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

AVAILABLE

public static final boolean AVAILABLE
Constructor Detail

LegacySlf4jLoggerFactory

public LegacySlf4jLoggerFactory()
Method Detail

getLogger

public org.eclipse.aether.spi.log.Logger getLogger(String name)
Specified by:
getLogger in interface org.eclipse.aether.spi.log.LoggerFactory

initService

public void initService(org.eclipse.aether.spi.locator.ServiceLocator locator)
Specified by:
initService in interface org.eclipse.aether.spi.locator.Service

setLoggerFactory

public LegacySlf4jLoggerFactory setLoggerFactory(org.slf4j.ILoggerFactory factory)

TrueUpdate Artifact Implementation Maven 0.1.6

Copyright © 2013 Stimulus Software. All rights reserved.