org.jencks
Class SingletonEndpointFactory

java.lang.Object
  extended byorg.jencks.EndpointFactorySupport
      extended byorg.jencks.SingletonEndpointFactory
All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean, MessageEndpointFactory

public class SingletonEndpointFactory
extends EndpointFactorySupport
implements org.springframework.beans.factory.InitializingBean

An implementation of MessageEndpointFactory which always uses a single shared instance of a MessageListener for every endpoint, irrespective of how many physical endpoints are used.

Version:
$Revision: 1.1.1.1 $

Field Summary
 
Fields inherited from class org.jencks.EndpointFactorySupport
transactionManager
 
Constructor Summary
SingletonEndpointFactory()
           
SingletonEndpointFactory(MessageListener messageListener)
           
 
Method Summary
 void afterPropertiesSet()
           
protected  MessageListener createMessageListener()
           
 MessageListener getMessageListener()
           
 void setMessageListener(MessageListener messageListener)
           
 
Methods inherited from class org.jencks.EndpointFactorySupport
createEndpoint, getTransactionManager, isDeliveryTransacted, setTransactionManager, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SingletonEndpointFactory

public SingletonEndpointFactory()

SingletonEndpointFactory

public SingletonEndpointFactory(MessageListener messageListener)
Method Detail

afterPropertiesSet

public void afterPropertiesSet()
                        throws Exception
Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
Throws:
Exception

getMessageListener

public MessageListener getMessageListener()

setMessageListener

public void setMessageListener(MessageListener messageListener)

createMessageListener

protected MessageListener createMessageListener()
                                         throws UnavailableException
Specified by:
createMessageListener in class EndpointFactorySupport
Throws:
UnavailableException


Copyright © 2005 LogicBlaze, Inc.. All Rights Reserved.