Package org.jvnet.basicjaxb.plugin
Class AbstractParameterizablePlugin
java.lang.Object
com.sun.tools.xjc.Plugin
org.jvnet.basicjaxb.plugin.AbstractPlugin
org.jvnet.basicjaxb.plugin.AbstractParameterizablePlugin
Abstract base class for parameterizable JAXB plugins.
This plugin looks for the arguments of the form
-myPlugin-name=value
(myPlugin is the plugin option name) and
then invokes setName(value) on itself.
For instance, the argument -Xfoo-bar=test triggers
setBar("test") invocation.
Values are injected using Commons BeanUtils as bean properties, so types will be converted correspondingly
- Author:
- valikov
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintparseArgument(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.basicjaxb.plugin.AbstractPlugin
afterRun, beforeRun, getCustomizationElementNames, getCustomizationURIs, getLogger, init, isCustomizationTagName, onActivated, run, runMethods inherited from class com.sun.tools.xjc.Plugin
getOptionName, getUsage, postProcessModel
-
Constructor Details
-
AbstractParameterizablePlugin
public AbstractParameterizablePlugin()
-
-
Method Details
-
parseArgument
public int parseArgument(com.sun.tools.xjc.Options opt, String[] args, int start) throws com.sun.tools.xjc.BadCommandLineException, IOException Parses the arguments and injects values into the beans via properties.- Overrides:
parseArgumentin classcom.sun.tools.xjc.Plugin- Throws:
com.sun.tools.xjc.BadCommandLineExceptionIOException
-