All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jbpm.jpdl.el.impl.BeanMethod Maven / Gradle / Ivy

The newest version!
package org.jbpm.jpdl.el.impl;

import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

public class BeanMethod {

  private Method method;

  public BeanMethod(Method method) {
    this.method = method;
  }

  public Object invoke(Object object) throws IllegalAccessException, InvocationTargetException {
    if (log.isDebugEnabled()) log.debug("invoking " + method);
    return method.invoke(object, (Object[]) null);
  }

  private static final Log log = LogFactory.getLog(BeanMethod.class);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy