/* JFox, the OpenSource J2EE Application Server
 *
 * Copyright (C) 2002 huihoo.com
 * Distributable under GNU LGPL license
 * See the GNU Lesser General Public License for more details.
 */

package org.jfox.ejb.plugin;

import java.util.Iterator;

import org.jfox.ejb.Invocation;
import org.jfox.ejb.Bulk;
import org.huihoo.jfox.logging.Logger;

/**
 * 
 * @author <a href="mailto:young_yy@hotmail.com">Young Yang</a>
 */

public abstract class AbstractInvoker implements Invoker, Comparable {
  protected Logger logger = Logger.getLogger(getClass().getName());

  public AbstractInvoker() {

  }

  public Object invokeHome(Bulk bulk, Invocation invocation, Iterator iter) throws Exception {
    return InvokerChain.nextInvokeHome(bulk,invocation,iter);
  }

  public Object invokeBean(Bulk bulk, Invocation invocation, Iterator iter) throws Exception {
    return InvokerChain.nextInvokeBean(bulk,invocation,iter);
  }

  public int compareTo(Object o) {
    return this.getClass().getName().compareTo(o.getClass().getName());
  }
}