|
Cumulus4j API (1.2.0) |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.cumulus4j.store.reflectionwrapper.ReflectionWrapper
public abstract class ReflectionWrapper
Constructor Summary | |
---|---|
ReflectionWrapper(ClassLoader classLoader)
|
|
ReflectionWrapper(ReflectionWrapper persistenceEngineWrapper,
Object wrappedObject)
|
Method Summary | |
---|---|
protected Object |
createWrappedObject(Class<?> wrappedClass)
|
protected ClassLoader |
getClassLoader()
|
Class<?> |
getWrappedClass()
|
protected String |
getWrappedClassName()
|
Object |
getWrappedObject()
|
protected Object |
invoke(int methodID,
String methodName)
Invoke a method on the wrapped object. |
protected Object |
invoke(int methodID,
String methodName,
Class<?>[] parameterTypes,
Object... parameters)
Invoke a method on the wrapped object. |
protected Object |
invoke(int methodID,
String methodName,
Class<?> parameterType1,
Class<?> parameterType2,
Class<?> parameterType3,
Object... parameters)
Invoke a method on the wrapped object. |
protected Object |
invoke(int methodID,
String methodName,
Class<?> parameterType1,
Class<?> parameterType2,
Object... parameters)
Invoke a method on the wrapped object. |
protected Object |
invoke(int methodID,
String methodName,
Class<?> parameterType,
Object parameter)
Invoke a method on the wrapped object. |
protected Object |
invokeStatic(int methodID,
String methodName)
|
protected Object |
invokeStatic(int methodID,
String methodName,
Class<?>[] parameterTypes,
Object... parameters)
Invoke a method on the wrapped class (not the wrapped object) in a static way. |
protected Object |
invokeStatic(int methodID,
String methodName,
Class<?> parameterType1,
Class<?> parameterType2,
Class<?> parameterType3,
Object... parameters)
|
protected Object |
invokeStatic(int methodID,
String methodName,
Class<?> parameterType1,
Class<?> parameterType2,
Object... parameters)
|
protected Object |
invokeStatic(int methodID,
String methodName,
Class<?> parameterType,
Object parameter)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ReflectionWrapper(ClassLoader classLoader)
public ReflectionWrapper(ReflectionWrapper persistenceEngineWrapper, Object wrappedObject)
Method Detail |
---|
protected ClassLoader getClassLoader()
protected String getWrappedClassName()
public Class<?> getWrappedClass()
protected Object createWrappedObject(Class<?> wrappedClass)
public Object getWrappedObject()
protected Object invokeStatic(int methodID, String methodName)
protected Object invokeStatic(int methodID, String methodName, Class<?> parameterType, Object parameter)
protected Object invokeStatic(int methodID, String methodName, Class<?> parameterType1, Class<?> parameterType2, Object... parameters)
protected Object invokeStatic(int methodID, String methodName, Class<?> parameterType1, Class<?> parameterType2, Class<?> parameterType3, Object... parameters)
protected Object invokeStatic(int methodID, String methodName, Class<?>[] parameterTypes, Object... parameters)
methodID
- identifier that must be unique within the subclass of ReflectionWrapper
.
For performance reasons, the Method
instances are cached and the cache key is this methodID
(rather than a long String comprising methodName
and parameterTypes
).methodName
- method name as passed to Class.getMethod(String, Class...)
.parameterTypes
- parameter types as passed to Class.getMethod(String, Class...)
.parameters
- parameters as passed to Method.invoke(Object, Object...)
.
Method.invoke(Object, Object...)
.protected Object invoke(int methodID, String methodName)
invoke(int, String, Class[], Object...)
.
methodID
- identifier that must be unique within the subclass of ReflectionWrapper
.methodName
- method name.
protected Object invoke(int methodID, String methodName, Class<?> parameterType, Object parameter)
invoke(int, String, Class[], Object...)
.
methodID
- identifier that must be unique within the subclass of ReflectionWrapper
.methodName
- method name.parameterType
- single parameter type.parameter
- single parameter.
protected Object invoke(int methodID, String methodName, Class<?> parameterType1, Class<?> parameterType2, Object... parameters)
invoke(int, String, Class[], Object...)
.
methodID
- identifier that must be unique within the subclass of ReflectionWrapper
.methodName
- method name.parameterType1
- first parameter type.parameterType2
- second parameter type.parameters
- two parameters (corresponding to the two parameter types).
protected Object invoke(int methodID, String methodName, Class<?> parameterType1, Class<?> parameterType2, Class<?> parameterType3, Object... parameters)
invoke(int, String, Class[], Object...)
.
methodID
- identifier that must be unique within the subclass of ReflectionWrapper
.methodName
- method name.parameterType1
- first parameter type.parameterType2
- second parameter type.parameterType3
- third parameter type.parameters
- three parameters (corresponding to the three parameter types).
protected Object invoke(int methodID, String methodName, Class<?>[] parameterTypes, Object... parameters)
methodID
- identifier that must be unique within the subclass of ReflectionWrapper
.
For performance reasons, the Method
instances are cached and the cache key is this methodID
(rather than a long String comprising methodName
and parameterTypes
).methodName
- method name as passed to Class.getMethod(String, Class...)
.parameterTypes
- parameter types as passed to Class.getMethod(String, Class...)
.parameters
- parameters as passed to Method.invoke(Object, Object...)
.
Method.invoke(Object, Object...)
.
|
Cumulus4j API (1.2.0) |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |