Reflected
- The class for the reflected constructor.public class ConstructorMirror<Reflected> extends Object
Constructor and Description |
---|
ConstructorMirror(Constructor<? extends Reflected> reflectedConstructor)
Public constructor for the reflection class.
|
Modifier and Type | Method and Description |
---|---|
Constructor<? extends Reflected> |
getReflectedConstructor()
Gets the constructor being reflected.
|
Reflected |
newInstance(Object[] paramsValues,
Boolean ignoreAccess)
Invokes a constructor for a class.
|
void |
setReflectedConstructor(Constructor<? extends Reflected> reflectedConstructor)
Sets the constructor being reflected.
|
public ConstructorMirror(Constructor<? extends Reflected> reflectedConstructor)
reflectedConstructor
- Constructor being reflected.public Constructor<? extends Reflected> getReflectedConstructor()
public void setReflectedConstructor(Constructor<? extends Reflected> reflectedConstructor)
reflectedConstructor
- New constructor being reflected.public Reflected newInstance(Object[] paramsValues, Boolean ignoreAccess) throws org.dejava.component.exception.localized.unchecked.InvalidParameterException, InvocationException
paramsValues
- Parameters values to be used during the invocation.ignoreAccess
- If the defined access for the constructor must be ignored.org.dejava.component.exception.localized.unchecked.InvalidParameterException
- If the given parameters are from the wrong type, if the constructor is unaccessible or if
the class is abstract.InvocationException
- If the constructor throws an exception itself.Copyright © 2013. All Rights Reserved.