org.jboss.maven.plugins.injection
Class BytecodeInjectionMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.jboss.maven.plugins.injection.AbstractInjectionMojo
          extended by 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

Field Summary
protected  BytecodeInjection[] bytecodeInjections
          The injections to be performed.
 
Fields inherited from class org.jboss.maven.plugins.injection.AbstractInjectionMojo
project
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
BytecodeInjectionMojo()
           
 
Method Summary
protected  List<InjectionDescriptor> getInjectionDescriptors()
           
protected  void prepare()
           
 
Methods inherited from class org.jboss.maven.plugins.injection.AbstractInjectionMojo
buildProjectCompileClassLoader, execute, finishUp, projectCompileClasspathElements, resolveExpression
 
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
 

Field Detail

bytecodeInjections

protected BytecodeInjection[] bytecodeInjections
The injections to be performed.

Constructor Detail

BytecodeInjectionMojo

public BytecodeInjectionMojo()
Method Detail

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.