com.sun.enterprise.connectors.inbound
Class MessageEndpointInvocationHandler

java.lang.Object
  extended by com.sun.enterprise.connectors.inbound.MessageEndpointInvocationHandler
All Implemented Interfaces:
java.lang.reflect.InvocationHandler

public final class MessageEndpointInvocationHandler
extends java.lang.Object
implements java.lang.reflect.InvocationHandler

This class handles the implementation of two interfaces: 1) javax.resource.spi.endpoint.MessageEndpoint; 2) any message listener type (e.g. javax.jms.MessageListener, OR javax.xml.messaging.OnewayListener)

Author:
Qingqing Ouyang

Constructor Summary
MessageEndpointInvocationHandler(MessageBeanListener listener, MessageBeanProtocolManager pm)
          Constructs a MessageEndpointInvocationHandler.
 
Method Summary
 java.lang.Object invoke(java.lang.Object proxy, java.lang.reflect.Method method, java.lang.Object[] args)
          Invokes the method
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MessageEndpointInvocationHandler

public MessageEndpointInvocationHandler(MessageBeanListener listener,
                                        MessageBeanProtocolManager pm)
Constructs a MessageEndpointInvocationHandler.

Parameters:
listener - MessageBeanListener to deliver messages.
pm - Protocol object to MDB container.
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
Invokes the method

Specified by:
invoke in interface java.lang.reflect.InvocationHandler
Parameters:
proxy - Object
method - Method to be executed.
args - Arguments
Throws:
Throwable.
java.lang.Throwable


Copyright © 2012 GlassFish Community. All Rights Reserved.