org.jfox.ejb.plugin
Class AbstractInvoker

java.lang.Object
  extended byorg.jfox.ejb.plugin.AbstractInvoker
All Implemented Interfaces:
java.lang.Comparable, Invoker
Direct Known Subclasses:
A5_PoolInvoker, B5_EJBOperationInvoker, Z5_SessionInvoker

public abstract class AbstractInvoker
extends java.lang.Object
implements Invoker, java.lang.Comparable


Field Summary
protected  Logger logger
           
 
Constructor Summary
AbstractInvoker()
           
 
Method Summary
 int compareTo(java.lang.Object o)
          Compares this object with the specified object for order.
 java.lang.Object invokeBean(Bucket bucket, Invocation invocation, java.util.Iterator iter)
          执行 invokeBean 方法
 java.lang.Object invokeHome(Bucket bucket, Invocation invocation, java.util.Iterator iter)
          执行 invokeHome 方法
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected Logger logger
Constructor Detail

AbstractInvoker

public AbstractInvoker()
Method Detail

invokeHome

public java.lang.Object invokeHome(Bucket bucket,
                                   Invocation invocation,
                                   java.util.Iterator iter)
                            throws java.lang.Exception
Description copied from interface: Invoker
执行 invokeHome 方法

Specified by:
invokeHome in interface Invoker
Parameters:
invocation -
iter - Invoker 调用链
Returns:
Throws:
java.lang.Exception

invokeBean

public java.lang.Object invokeBean(Bucket bucket,
                                   Invocation invocation,
                                   java.util.Iterator iter)
                            throws java.lang.Exception
Description copied from interface: Invoker
执行 invokeBean 方法

Specified by:
invokeBean in interface Invoker
Parameters:
invocation -
iter - Invoker 调用链
Returns:
Throws:
java.lang.Exception

compareTo

public int compareTo(java.lang.Object o)
Description copied from interface: java.lang.Comparable
Compares this object with the specified object for order. Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.

In the foregoing description, the notation sgn(expression) designates the mathematical signum function, which is defined to return one of -1, 0, or 1 according to whether the value of expression is negative, zero or positive. The implementor must ensure sgn(x.compareTo(y)) == -sgn(y.compareTo(x)) for all x and y. (This implies that x.compareTo(y) must throw an exception iff y.compareTo(x) throws an exception.)

The implementor must also ensure that the relation is transitive: (x.compareTo(y)>0 && y.compareTo(z)>0) implies x.compareTo(z)>0.

Finally, the implementer must ensure that x.compareTo(y)==0 implies that sgn(x.compareTo(z)) == sgn(y.compareTo(z)), for all z.

It is strongly recommended, but not strictly required that (x.compareTo(y)==0) == (x.equals(y)). Generally speaking, any class that implements the Comparable interface and violates this condition should clearly indicate this fact. The recommended language is "Note: this class has a natural ordering that is inconsistent with equals."

Specified by:
compareTo in interface java.lang.Comparable
Parameters:
o - the Object to be compared.
Returns:
a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.