org.jboss.maven.plugins.injection
Class BytecodeInjectionMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.jboss.maven.plugins.injection.AbstractInjectionMojo
org.jboss.maven.plugins.injection.BytecodeInjectionMojo
- All Implemented Interfaces:
- org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
public class BytecodeInjectionMojo
- extends AbstractInjectionMojo
Used to inject resolved expression values into compiled bytecode.
TODO : add checks as to whether the injection is needed to avoid file timestamp changes.
Basically we should skip the injection if the class file field is already the injection value...
- Author:
- Steve Ebersole
Fields inherited from interface org.apache.maven.plugin.Mojo |
ROLE |
Methods inherited from class org.apache.maven.plugin.AbstractMojo |
getLog, getPluginContext, setLog, setPluginContext |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
bytecodeInjections
protected BytecodeInjection[] bytecodeInjections
- The injections to be performed.
BytecodeInjectionMojo
public BytecodeInjectionMojo()
prepare
protected void prepare()
throws org.apache.maven.plugin.MojoExecutionException
- Overrides:
prepare
in class AbstractInjectionMojo
- Throws:
org.apache.maven.plugin.MojoExecutionException
getInjectionDescriptors
protected List<InjectionDescriptor> getInjectionDescriptors()
throws org.apache.maven.plugin.MojoExecutionException
- Specified by:
getInjectionDescriptors
in class AbstractInjectionMojo
- Throws:
org.apache.maven.plugin.MojoExecutionException
Copyright © 2011 JBoss, a division of Red Hat, Inc. All Rights Reserved.