org.apache.maven.plugins.help
Class LoggerRetriever

java.lang.Object
  extended by org.codehaus.plexus.logging.AbstractLogEnabled
      extended by org.apache.maven.plugins.help.LoggerRetriever
All Implemented Interfaces:
org.codehaus.plexus.logging.LogEnabled

@Component(role=LoggerRetriever.class,
           hint="default",
           instantiationStrategy="per-lookup")
public class LoggerRetriever
extends org.codehaus.plexus.logging.AbstractLogEnabled

A helper to expose a Plexus logger via ordinary dependency injection instead of accessing the container API directly which is problematic with regard to future changes of the container as in Maven 3.

Author:
Benjamin Bentmann

Constructor Summary
LoggerRetriever()
           
 
Method Summary
 org.codehaus.plexus.logging.Logger getLogger()
           
 
Methods inherited from class org.codehaus.plexus.logging.AbstractLogEnabled
enableLogging, setupLogger, setupLogger, setupLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LoggerRetriever

public LoggerRetriever()
Method Detail

getLogger

public org.codehaus.plexus.logging.Logger getLogger()
Overrides:
getLogger in class org.codehaus.plexus.logging.AbstractLogEnabled


Copyright © 2001-2013 The Apache Software Foundation. All Rights Reserved.