org.apache.openejb.core.mdb
Class EndpointHandler

java.lang.Object
  extended by org.apache.openejb.core.mdb.EndpointHandler
All Implemented Interfaces:
java.lang.reflect.InvocationHandler, javax.resource.spi.endpoint.MessageEndpoint

public class EndpointHandler
extends java.lang.Object
implements java.lang.reflect.InvocationHandler, javax.resource.spi.endpoint.MessageEndpoint


Constructor Summary
EndpointHandler(MdbContainer container, CoreDeploymentInfo deployment, MdbInstanceFactory instanceFactory, javax.transaction.xa.XAResource xaResource)
           
 
Method Summary
 void afterDelivery()
           
 void beforeDelivery(java.lang.reflect.Method method)
           
 java.lang.Object deliverMessage(java.lang.reflect.Method method, java.lang.Object[] args)
           
 java.lang.Object invoke(java.lang.Object proxy, java.lang.reflect.Method method, java.lang.Object[] args)
           
 void release()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EndpointHandler

public EndpointHandler(MdbContainer container,
                       CoreDeploymentInfo deployment,
                       MdbInstanceFactory instanceFactory,
                       javax.transaction.xa.XAResource xaResource)
                throws javax.resource.spi.UnavailableException
Throws:
javax.resource.spi.UnavailableException
Method Detail

invoke

public java.lang.Object invoke(java.lang.Object proxy,
                               java.lang.reflect.Method method,
                               java.lang.Object[] args)
                        throws java.lang.Throwable
Specified by:
invoke in interface java.lang.reflect.InvocationHandler
Throws:
java.lang.Throwable

beforeDelivery

public void beforeDelivery(java.lang.reflect.Method method)
                    throws javax.resource.spi.ApplicationServerInternalException
Specified by:
beforeDelivery in interface javax.resource.spi.endpoint.MessageEndpoint
Throws:
javax.resource.spi.ApplicationServerInternalException

deliverMessage

public java.lang.Object deliverMessage(java.lang.reflect.Method method,
                                       java.lang.Object[] args)
                                throws java.lang.Throwable
Throws:
java.lang.Throwable

afterDelivery

public void afterDelivery()
                   throws javax.resource.spi.ApplicationServerInternalException,
                          javax.resource.spi.UnavailableException
Specified by:
afterDelivery in interface javax.resource.spi.endpoint.MessageEndpoint
Throws:
javax.resource.spi.ApplicationServerInternalException
javax.resource.spi.UnavailableException

release

public void release()
Specified by:
release in interface javax.resource.spi.endpoint.MessageEndpoint


Copyright © 1999-2011 The Apache OpenEJB development community. All Rights Reserved.