org.objectweb.fractal.fraclet
Class PrimitiveComponentPlugin
java.lang.Object
org.generama.Plugin
org.generama.defaults.QDoxPlugin
org.objectweb.fractal.fraclet.FractalPlugin
org.objectweb.fractal.fraclet.AttributeControllerPlugin
org.objectweb.fractal.fraclet.PrimitiveComponentPlugin
- All Implemented Interfaces:
- org.picocontainer.Startable
- public class PrimitiveComponentPlugin
- extends AttributeControllerPlugin
XDoclet plugin applied in conjunction with the FractalPrimitivePlugin.vm
template to generate the Component implementation.
- Version:
- $Revision: 1.1 $
- Author:
- Romain Rouvoy
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.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 |
PrimitiveComponentPlugin
public PrimitiveComponentPlugin(VelocityTemplateEngine velocity,
QDoxCapableMetadataProvider qdox,
WriterMapper writer)
- Primitive component glue generator using the Velocity template engine.
- Parameters:
velocity
- the Java template engine.qdox
- the qdox java model provider.writer
- the file writer mapper.
shouldGenerate
public boolean shouldGenerate(Object obj)
- Overrides:
shouldGenerate
in class AttributeControllerPlugin
implementsClause
public String implementsClause(JavaClass cls)
- Provides the list of implemented interfaces.
- Parameters:
cls
- the class introspected.
- Returns:
- the implements clause.