org.jboss.ejb3.mdb
Class ProducerFactory

java.lang.Object
  extended by org.jboss.ejb3.mdb.ProducerFactory
All Implemented Interfaces:
ProxyFactory
Direct Known Subclasses:
LocalProducerFactory, RemoteProducerFactory

public abstract class ProducerFactory
extends Object
implements ProxyFactory

comment

Author:
Bill Burke

Field Summary
protected  InitialContext ctx
           
protected  javax.jms.Destination dest
           
protected  Hashtable<?,?> initialContextProperties
           
protected  String jndiName
           
protected  HashMap<?,?> methodMap
           
protected  org.jboss.ejb3.annotation.impl.ProducerImpl pImpl
           
protected  Class<?> producer
           
protected  org.jboss.ejb3.annotation.MessageProperties props
           
static String PROXY_FACTORY_NAME
           
 
Constructor Summary
protected ProducerFactory(ConsumerContainer container, Class<?> producer, org.jboss.ejb3.annotation.MessageProperties props, javax.jms.Destination dest, InitialContext ctx, Hashtable<?,?> ctxProperties)
           
 
Method Summary
 Object createHomeProxy()
          Create an EJB 2.1 Home Proxy
 Object createProxyBusiness(Object id)
           
 void setContainer(Container container)
           
 void start()
          Lifecycle Start
 void stop()
          Lifecycle Stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jboss.ejb3.proxy.ProxyFactory
createProxyBusiness
 

Field Detail

producer

protected Class<?> producer

props

protected org.jboss.ejb3.annotation.MessageProperties props

dest

protected javax.jms.Destination dest

methodMap

protected HashMap<?,?> methodMap

pImpl

protected org.jboss.ejb3.annotation.impl.ProducerImpl pImpl

jndiName

protected String jndiName

ctx

protected InitialContext ctx

initialContextProperties

protected Hashtable<?,?> initialContextProperties

PROXY_FACTORY_NAME

public static final String PROXY_FACTORY_NAME
See Also:
Constant Field Values
Constructor Detail

ProducerFactory

protected ProducerFactory(ConsumerContainer container,
                          Class<?> producer,
                          org.jboss.ejb3.annotation.MessageProperties props,
                          javax.jms.Destination dest,
                          InitialContext ctx,
                          Hashtable<?,?> ctxProperties)
Method Detail

createHomeProxy

public Object createHomeProxy()
Description copied from interface: ProxyFactory
Create an EJB 2.1 Home Proxy

Specified by:
createHomeProxy in interface ProxyFactory
Returns:

createProxyBusiness

public Object createProxyBusiness(Object id)

setContainer

public void setContainer(Container container)

start

public void start()
           throws Exception
Description copied from interface: ProxyFactory
Lifecycle Start

Specified by:
start in interface ProxyFactory
Throws:
Exception

stop

public void stop()
          throws Exception
Description copied from interface: ProxyFactory
Lifecycle Stop

Specified by:
stop in interface ProxyFactory
Throws:
Exception


Copyright © 2010 JBoss, a division of Red Hat, Inc.. All Rights Reserved.