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;
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());
}
}