Injection Maven Mojo 1.0.2

org.jboss.maven.plugins.injection
Class BytecodeInjectionMojo

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

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

Nested Class Summary
static interface BytecodeInjectionMojo.InjectionTarget
          Defines a strategy for applying injections.
 
Field Summary
protected  BytecodeInjection[] bytecodeInjections
          The injections to be performed.
protected  org.apache.maven.project.MavenProject project
          The Maven Project Object
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
BytecodeInjectionMojo()
           
 
Method Summary
 void execute()
          
 
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

project

protected org.apache.maven.project.MavenProject project
The Maven Project Object


bytecodeInjections

protected BytecodeInjection[] bytecodeInjections
The injections to be performed.

Constructor Detail

BytecodeInjectionMojo

public BytecodeInjectionMojo()
Method Detail

execute

public void execute()
             throws org.apache.maven.plugin.MojoExecutionException,
                    org.apache.maven.plugin.MojoFailureException

Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException

Injection Maven Mojo 1.0.2

Copyright © 2011 JBoss, a division of Red Hat, Inc. All Rights Reserved.