Package org.jvnet.jaxb2_commons.plugin
Class AbstractParameterizablePlugin
- java.lang.Object
-
- com.sun.tools.xjc.Plugin
-
- org.jvnet.jaxb2_commons.plugin.AbstractPlugin
-
- org.jvnet.jaxb2_commons.plugin.AbstractParameterizablePlugin
-
- Direct Known Subclasses:
AbstractSpringConfigurablePlugin
public abstract class AbstractParameterizablePlugin extends AbstractPlugin
Abstract base class for parameterizable JAXB plugins.This plugin looks for the arguments of the form
-myPlugin-name=value(myPluginis the plugin option name) and then invokessetName(value)on itself.For instance, the argument
-Xfoo-bar=testtriggerssetBar("test")invocation.Values are injected using Commons BeanUtils as bean properties, so types will be converted correspondingly
- Author:
- valikov
-
-
Field Summary
-
Fields inherited from class org.jvnet.jaxb2_commons.plugin.AbstractPlugin
logger
-
-
Constructor Summary
Constructors Constructor Description AbstractParameterizablePlugin()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intparseArgument(com.sun.tools.xjc.Options opt, String[] args, int start)Parses the arguments and injects values into the beans via properties.-
Methods inherited from class org.jvnet.jaxb2_commons.plugin.AbstractPlugin
afterRun, beforeRun, getCustomizationElementNames, getCustomizationURIs, init, isCustomizationTagName, onActivated, run, run
-
-
-
-
Method Detail
-
parseArgument
public int parseArgument(com.sun.tools.xjc.Options opt, String[] args, int start) throws com.sun.tools.xjc.BadCommandLineException, IOExceptionParses the arguments and injects values into the beans via properties.- Overrides:
parseArgumentin classcom.sun.tools.xjc.Plugin- Throws:
com.sun.tools.xjc.BadCommandLineExceptionIOException
-
-