public class ProtectedMethodInvoker extends Object
Constructor and Description |
---|
ProtectedMethodInvoker() |
Modifier and Type | Method and Description |
---|---|
Object |
invokeProtected(Object source,
String methodName,
Class<?>[] paramTypes,
Object[] args)
This method attempts to invoke the provided methodName within the source object.
|
<T extends Throwable> |
unwrapException(Throwable t,
Class<T> exceptionType)
This method checks whether the Throwable t is an instance of the provided
exceptionType.
|
public <T extends Throwable> void unwrapException(Throwable t, Class<T> exceptionType) throws T extends Throwable
t
- exceptionType
- T
T extends Throwable
public Object invokeProtected(Object source, String methodName, Class<?>[] paramTypes, Object[] args) throws InvocationTargetException
source
- methodName
- paramTypes
- args
- InvocationTargetException
Copyright © 2014 Open Microscopy Environment