1 6 7 package org.jfox.ejb.handler; 8 9 import java.util.Iterator ; 10 11 import org.jfox.ejb.Bucket; 12 import org.jfox.ejb.connector.EJBInvocation; 13 import org.jfox.ioc.logger.Logger; 14 15 18 19 public abstract class AbstractHandler implements Handler, Comparable { 20 protected Logger logger = Logger.getLogger(getClass().getName()); 21 22 public AbstractHandler() { 23 24 } 25 26 public Object invokeHome(Bucket bucket, EJBInvocation invocation, Iterator iter) throws Exception { 27 return HandlerChain.nextInvokeHome(bucket, invocation, iter); 28 } 29 30 public Object invokeBean(Bucket bucket, EJBInvocation invocation, Iterator iter) throws Exception { 31 return HandlerChain.nextInvokeBean(bucket, invocation, iter); 32 } 33 34 public int compareTo(Object o) { 35 return this.getClass().getName().compareTo(o.getClass().getName()); 36 } 37 } 38 | Popular Tags |