org.apache.openejb.core.mdb
Class EndpointHandler

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

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


Constructor Summary
EndpointHandler(MdbContainer container, CoreDeploymentInfo deployment, MdbInstanceFactory instanceFactory, XAResource xaResource)
           
 
Method Summary
 void afterDelivery()
           
 void beforeDelivery(Method method)
           
 Object deliverMessage(Method method, Object[] args)
           
 Object invoke(Object proxy, Method method, 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,
                       XAResource xaResource)
                throws javax.resource.spi.UnavailableException
Throws:
javax.resource.spi.UnavailableException
Method Detail

invoke

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

beforeDelivery

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

deliverMessage

public Object deliverMessage(Method method,
                             Object[] args)
                      throws Throwable
Throws:
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.