01: package org.jbpm.jpdl.el.impl;
02:
03: import java.lang.reflect.InvocationTargetException;
04: import java.lang.reflect.Method;
05:
06: import org.apache.commons.logging.Log;
07: import org.apache.commons.logging.LogFactory;
08:
09: public class BeanMethod {
10:
11: Method method;
12:
13: public BeanMethod(Method method) {
14: this .method = method;
15: }
16:
17: public Object invoke(Object object)
18: throws InvocationTargetException, IllegalArgumentException,
19: IllegalAccessException {
20: log.debug("invoking expression method '" + method.getName()
21: + "'");
22: return method.invoke(object, null);
23: }
24:
25: private static Log log = LogFactory.getLog(BeanMethod.class);
26: }
|