org.jboss.ejb.plugins
Class MessageDrivenInstanceInterceptor

java.lang.Object
  |
  +--org.jboss.ejb.plugins.AbstractInterceptor
        |
        +--org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor
              |
              +--org.jboss.ejb.plugins.MessageDrivenInstanceInterceptor
All Implemented Interfaces:
ContainerPlugin, Interceptor, Service

public class MessageDrivenInstanceInterceptor
extends StatelessSessionInstanceInterceptor

This container acquires the given instance. This must be used after the EnvironmentInterceptor, since acquiring instances requires a proper JNDI environment to be set For MessageDriven Beans, we inherit the StatelessSession for now, since message driven beans is much like them

Version:
$Revision: 1.3 $
Author:
Peter Antman (peter.antman@tim.se), Rickard Öberg (rickard.oberg@telkel.com)
See Also:

Field Summary
protected  MessageDrivenContainer container
           
 
Fields inherited from class org.jboss.ejb.plugins.AbstractInterceptor
nextInterceptor
 
Constructor Summary
MessageDrivenInstanceInterceptor()
           
 
Method Summary
 java.lang.Object invoke(MethodInvocation mi)
           
 java.lang.Object invokeHome(MethodInvocation mi)
           
 void setContainer(Container container)
          This callback is set by the container so that the plugin may access it
 
Methods inherited from class org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor
getContainer
 
Methods inherited from class org.jboss.ejb.plugins.AbstractInterceptor
destroy, getNext, init, setNext, start, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

container

protected MessageDrivenContainer container
Constructor Detail

MessageDrivenInstanceInterceptor

public MessageDrivenInstanceInterceptor()
Method Detail

setContainer

public void setContainer(Container container)
Description copied from interface: ContainerPlugin
This callback is set by the container so that the plugin may access it
Overrides:
setContainer in class StatelessSessionInstanceInterceptor
Following copied from interface: org.jboss.ejb.ContainerPlugin
Parameters:
con - the container using this plugin

invokeHome

public java.lang.Object invokeHome(MethodInvocation mi)
                            throws java.lang.Exception
Overrides:
invokeHome in class StatelessSessionInstanceInterceptor

invoke

public java.lang.Object invoke(MethodInvocation mi)
                        throws java.lang.Exception
Overrides:
invoke in class StatelessSessionInstanceInterceptor


Copyright © 2000 The JBoss Organization. All Rights Reserved.