net.vidageek.mirror.provider.experimental.sun15
Class Sun15ConstructorReflectionProvider<T>
java.lang.Object
net.vidageek.mirror.provider.experimental.sun15.Sun15ConstructorReflectionProvider<T>
- All Implemented Interfaces:
- ConstructorReflectionProvider<T>, ReflectionElementReflectionProvider
public final class Sun15ConstructorReflectionProvider<T>
- extends Object
- implements ConstructorReflectionProvider<T>
- Author:
- jonasabreu
|
Method Summary |
Class<?>[] |
getParameters()
This method is used to reflect the wrapped constructor parameter array. |
T |
instantiate(Object... args)
this method is used to instantiate an Object using wrapped constructor. |
void |
setAccessible()
set wrapped object as accessible. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Sun15ConstructorReflectionProvider
public Sun15ConstructorReflectionProvider(Class<T> clazz,
Constructor<T> constructor)
getParameters
public Class<?>[] getParameters()
- Description copied from interface:
ConstructorReflectionProvider
- This method is used to reflect the wrapped constructor parameter array.
- Specified by:
getParameters in interface ConstructorReflectionProvider<T>
- Returns:
- An array of class objects representing the method parameters.
instantiate
public T instantiate(Object... args)
- Description copied from interface:
ConstructorReflectionProvider
- this method is used to instantiate an Object using wrapped constructor.
- Specified by:
instantiate in interface ConstructorReflectionProvider<T>
- Parameters:
args - Arguments used to instantiate object.
- Returns:
- An instance provided by wrapped constructor.
setAccessible
public void setAccessible()
- Description copied from interface:
ReflectionElementReflectionProvider
- set wrapped object as accessible.
- Specified by:
setAccessible in interface ReflectionElementReflectionProvider
Copyright © 2011 VidaGeek.net. All Rights Reserved.