org.objectweb.fractal.fraclet
Class MonologConfigurationPlugin
java.lang.Object
org.generama.Plugin
org.generama.defaults.QDoxPlugin
org.objectweb.fractal.fraclet.Plugin
org.objectweb.fractal.fraclet.FractalPlugin
org.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.4 $
- Author:
- Romain Rouvoy
Fields inherited from class org.objectweb.fractal.fraclet.FractalPlugin |
ATTR_CTRL, ATTR_NAME, ATTRIBUTE_NAME, COMP_PREFIX, COMPONENT, CONTROL, FC_CONTROL, LIFECYCLE, LOGGER_NAME, PROVIDES, REQUIRES |
Methods inherited from class org.objectweb.fractal.fraclet.FractalPlugin |
attributeController, attributeControllerFullname, attributeControllerName, attributeName, attributes, bindingName, bindings, bindingSignature, componentFullname, componentName, componentPackage, extend, hasAttributes, hasBindings, hasGlue, hasLifecycles, hasLogger, hasPackage, hasReflects, isAttributeController, isComponent, isController, isData, isInterface, isPrimitive, lifecycles, loggerName, loggers, packagePrefix, reflects, superAttributeController |
Methods inherited from class org.generama.Plugin |
assertTrue, getContextObjects, getDestdirFile, 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 |
DEFAULT_WRAPPER
public static final String DEFAULT_WRAPPER
- See Also:
- Constant Field Values
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.
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(LoggerTag 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.