org.jfox.ejb3
Class EJBInvocationHandler

java.lang.Object
  extended by org.jfox.ejb3.EJBInvocationHandler
Direct Known Subclasses:
InterceptorsEJBInvocationHandler, SecurityEJBInvocationHandler, ThreadContextEJBInvocationHandler, TransactionEJBInvocationHandler

public abstract class EJBInvocationHandler
extends java.lang.Object


Field Summary
protected  org.apache.log4j.Logger logger
           
 
Constructor Summary
EJBInvocationHandler()
           
 
Method Summary
abstract  java.lang.Object invoke(EJBInvocation invocation, java.util.Iterator<EJBInvocationHandler> chain)
          对 ejb invocation 进行处理
static void main(java.lang.String[] args)
           
protected  java.lang.Object next(EJBInvocation invocation, java.util.Iterator<EJBInvocationHandler> chain)
          交给 chain 的下一个 handler 处理
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected final org.apache.log4j.Logger logger
Constructor Detail

EJBInvocationHandler

public EJBInvocationHandler()
Method Detail

next

protected final java.lang.Object next(EJBInvocation invocation,
                                      java.util.Iterator<EJBInvocationHandler> chain)
                               throws java.lang.Exception
交给 chain 的下一个 handler 处理

Parameters:
invocation - ejb invocation
chain - invocation china
Throws:
java.lang.Exception - any exception

invoke

public abstract java.lang.Object invoke(EJBInvocation invocation,
                                        java.util.Iterator<EJBInvocationHandler> chain)
                                 throws java.lang.Exception
对 ejb invocation 进行处理

Parameters:
invocation - ejb invocation
chain - invocation china
Throws:
java.lang.Exception - any exception

main

public static void main(java.lang.String[] args)