Class BytecodeInjectionMojo.ConstantInjectionTarget
- java.lang.Object
-
- org.jboss.maven.plugins.injection.BytecodeInjectionMojo.BaseInjectionTarget
-
- org.jboss.maven.plugins.injection.BytecodeInjectionMojo.ConstantInjectionTarget
-
- All Implemented Interfaces:
BytecodeInjectionMojo.InjectionTarget
- Enclosing class:
- BytecodeInjectionMojo
private class BytecodeInjectionMojo.ConstantInjectionTarget extends BytecodeInjectionMojo.BaseInjectionTarget
-
-
Field Summary
Fields Modifier and Type Field Description private javassist.bytecode.FieldInfo
ctFieldInfo
-
Constructor Summary
Constructors Modifier Constructor Description private
ConstantInjectionTarget(Constant constant)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
inject(java.lang.String value)
Inject the given value per this target's strategy.-
Methods inherited from class org.jboss.maven.plugins.injection.BytecodeInjectionMojo.BaseInjectionTarget
getClassFileLocation, getCtClass, getTargetMember, writeOutChanges
-
-
-
-
Constructor Detail
-
ConstantInjectionTarget
private ConstantInjectionTarget(Constant constant) throws org.apache.maven.plugin.MojoExecutionException
- Throws:
org.apache.maven.plugin.MojoExecutionException
-
-
Method Detail
-
inject
public void inject(java.lang.String value) throws org.apache.maven.plugin.MojoExecutionException
Description copied from interface:BytecodeInjectionMojo.InjectionTarget
Inject the given value per this target's strategy.- Parameters:
value
- The value to inject.- Throws:
org.apache.maven.plugin.MojoExecutionException
- Indicates a problem performing the injection.
-
-