org.ops4j.pax.construct.util
Class ReflectMojo
java.lang.Object
org.ops4j.pax.construct.util.ReflectMojo
public final class ReflectMojo
- extends java.lang.Object
Provide access to private inherited mojo fields
Constructor Summary |
ReflectMojo(org.apache.maven.plugin.AbstractMojo mojo,
java.lang.Class clazz)
|
Method Summary |
java.lang.Object |
getField(java.lang.String name)
|
boolean |
hasField(java.lang.String name)
|
void |
setField(java.lang.String name,
java.lang.Object value)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ReflectMojo
public ReflectMojo(org.apache.maven.plugin.AbstractMojo mojo,
java.lang.Class clazz)
- Parameters:
mojo
- maven mojo instanceclazz
- inherited super-mojo
hasField
public boolean hasField(java.lang.String name)
- Parameters:
name
- name of the field member
- Returns:
- true if the field exists, otherwise false
setField
public void setField(java.lang.String name,
java.lang.Object value)
- Parameters:
name
- name of the field membervalue
- the new value for the field
getField
public java.lang.Object getField(java.lang.String name)
- Parameters:
name
- name of the field member
- Returns:
- the current value in the field
Copyright © 2007-2008 OPS4J. All Rights Reserved.