org.objectweb.fractal.fraclet
Class MonologConfigurationPlugin

java.lang.Object
  extended byorg.generama.Plugin
      extended byorg.generama.defaults.QDoxPlugin
          extended byorg.objectweb.fractal.fraclet.FractalPlugin
              extended byorg.objectweb.fractal.fraclet.MonologConfigurationPlugin
All Implemented Interfaces:
org.picocontainer.Startable

public class MonologConfigurationPlugin
extends FractalPlugin

XDoclet plugin applied to applications to generate monolog.properties file automatically.

Version:
$Revision: 1.2 $
Author:
Romain Rouvoy

Field Summary
static String DEFAULT_WRAPPER
           
 
Fields inherited from class org.objectweb.fractal.fraclet.FractalPlugin
AC_NAME, ATTR_CTRL, ATTR_NAME, BC_NAME, FC_CONTROL, ITF_NAME, LOG_NAME, OBJECT, RC_NAME
 
Fields inherited from class org.generama.defaults.QDoxPlugin
metadataProvider
 
Fields inherited from class org.generama.Plugin
DONTEDIT, writerMapper
 
Constructor Summary
MonologConfigurationPlugin(VelocityTemplateEngine velocity, QDoxCapableMetadataProvider qdox, WriterMapper writer)
          Monolog configuration file generator using the Velocity template engine.
 
Method Summary
 String getWrapper()
          Provides the Monolog wrapper to use.
 String[] handlers(FractalLogTag tag)
          Provides the list of handlers used by the logger.
 void setWrapper(String name)
          Defines the Monolog wrapper to use.
 
Methods inherited from class org.objectweb.fractal.fraclet.FractalPlugin
attributeController, attributeName, attributes, bindingName, bindings, bindingSignature, extend, fields, fullname, hasAttributes, hasBindings, hasGlue, hasLogger, hasReflects, isAttributeController, isComponent, isController, isInterface, isPrimitive, logger, loggerName, name, packagePrefix, reflects, superAttributeController
 
Methods inherited from class org.generama.defaults.QDoxPlugin
getMetadata, getMetadataProvider, setRestrictedpath, shouldGenerate
 
Methods inherited from class org.generama.Plugin
assertTrue, getContextObjects, getDestdirFile, getDestinationFilename, getDestinationPackage, getEncoding, getOutputValidator, getPackageName, getWriterMapper, isEmpty, isMultioutput, isValidate, populateContextMap, preGenerate, setDestdir, setEncoding, setFileregex, setFilereplace, setMultioutput, setOutputValidator, setPackageregex, setPackagereplace, setValidate, start, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_WRAPPER

public static final String DEFAULT_WRAPPER
See Also:
Constant Field Values
Constructor Detail

MonologConfigurationPlugin

public MonologConfigurationPlugin(VelocityTemplateEngine velocity,
                                  QDoxCapableMetadataProvider qdox,
                                  WriterMapper writer)
Monolog configuration file generator using the Velocity template engine.

Parameters:
velocity - the Properties template engine.
qdox - the qdox java model provider.
writer - the file writer mapper.
Method Detail

getWrapper

public String getWrapper()
Provides the Monolog wrapper to use.

Returns:
the logging wrapper class.

setWrapper

public void setWrapper(String name)
Defines the Monolog wrapper to use.

Parameters:
name - the logging wrapper class.

handlers

public String[] handlers(FractalLogTag tag)
Provides the list of handlers used by the logger.

Parameters:
tag - the logger.
Returns:
an array containing the name of the handlers to use.