org.springframework.integration.jms.config
Class JmsChannelFactoryBean

java.lang.Object
  extended by org.springframework.beans.factory.config.AbstractFactoryBean<AbstractJmsChannel>
      extended by org.springframework.integration.jms.config.JmsChannelFactoryBean
All Implemented Interfaces:
BeanClassLoaderAware, BeanFactoryAware, BeanNameAware, DisposableBean, FactoryBean<AbstractJmsChannel>, InitializingBean, Lifecycle, Phased, SmartLifecycle

public class JmsChannelFactoryBean
extends AbstractFactoryBean<AbstractJmsChannel>
implements SmartLifecycle, DisposableBean, BeanNameAware

Since:
2.0

Field Summary
 
Fields inherited from class org.springframework.beans.factory.config.AbstractFactoryBean
logger
 
Constructor Summary
JmsChannelFactoryBean()
           
JmsChannelFactoryBean(boolean messageDriven)
           
 
Method Summary
protected  AbstractJmsChannel createInstance()
           
protected  void destroyInstance(AbstractJmsChannel instance)
           
 java.lang.Class<?> getObjectType()
           
 int getPhase()
           
 boolean isAutoStartup()
           
 boolean isRunning()
           
 void setAcceptMessagesWhileStopping(boolean acceptMessagesWhileStopping)
           
 void setAutoStartup(boolean autoStartup)
           
 void setBeanName(java.lang.String name)
           
 void setCacheLevelName(java.lang.String cacheLevelName)
           
 void setClientId(java.lang.String clientId)
           
 void setConcurrency(java.lang.String concurrency)
           
 void setConcurrentConsumers(int concurrentConsumers)
           
 void setConnectionFactory(javax.jms.ConnectionFactory connectionFactory)
           
 void setContainerType(java.lang.Class<? extends AbstractMessageListenerContainer> containerType)
           
 void setDeliveryPersistent(boolean deliveryPersistent)
           
 void setDestination(javax.jms.Destination destination)
           
 void setDestinationName(java.lang.String destinationName)
           
 void setDestinationResolver(DestinationResolver destinationResolver)
           
 void setDurableSubscriptionName(java.lang.String durableSubscriptionName)
           
 void setErrorHandler(ErrorHandler errorHandler)
           
 void setExceptionListener(javax.jms.ExceptionListener exceptionListener)
           
 void setExplicitQosEnabled(boolean explicitQosEnabled)
           
 void setExposeListenerSession(boolean exposeListenerSession)
           
 void setIdleTaskExecutionLimit(int idleTaskExecutionLimit)
           
 void setInterceptors(java.util.List<ChannelInterceptor> interceptors)
           
 void setMaxConcurrentConsumers(int maxConcurrentConsumers)
           
 void setMaxMessagesPerTask(int maxMessagesPerTask)
           
 void setMessageConverter(MessageConverter messageConverter)
           
 void setMessageIdEnabled(boolean messageIdEnabled)
           
 void setMessageSelector(java.lang.String messageSelector)
           
 void setMessageTimestampEnabled(boolean messageTimestampEnabled)
           
 void setPhase(int phase)
           
 void setPriority(int priority)
           
 void setPubSubDomain(boolean pubSubDomain)
           
 void setPubSubNoLocal(boolean pubSubNoLocal)
           
 void setReceiveTimeout(long receiveTimeout)
           
 void setRecoveryInterval(long recoveryInterval)
           
 void setSessionAcknowledgeMode(int sessionAcknowledgeMode)
           
 void setSessionTransacted(boolean sessionTransacted)
           
 void setSubscriptionDurable(boolean subscriptionDurable)
           
 void setTaskExecutor(java.util.concurrent.Executor taskExecutor)
           
 void setTimeToLive(long timeToLive)
           
 void setTransactionManager(PlatformTransactionManager transactionManager)
           
 void setTransactionName(java.lang.String transactionName)
           
 void setTransactionTimeout(int transactionTimeout)
           
 void start()
           
 void stop()
           
 void stop(java.lang.Runnable callback)
           
 
Methods inherited from class org.springframework.beans.factory.config.AbstractFactoryBean
afterPropertiesSet, destroy, getBeanFactory, getBeanTypeConverter, getEarlySingletonInterfaces, getObject, isSingleton, setBeanClassLoader, setBeanFactory, setSingleton
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.springframework.beans.factory.DisposableBean
destroy
 

Constructor Detail

JmsChannelFactoryBean

public JmsChannelFactoryBean()

JmsChannelFactoryBean

public JmsChannelFactoryBean(boolean messageDriven)
Method Detail

setInterceptors

public void setInterceptors(java.util.List<ChannelInterceptor> interceptors)

setDeliveryPersistent

public void setDeliveryPersistent(boolean deliveryPersistent)

setExplicitQosEnabled

public void setExplicitQosEnabled(boolean explicitQosEnabled)

setMessageConverter

public void setMessageConverter(MessageConverter messageConverter)

setMessageIdEnabled

public void setMessageIdEnabled(boolean messageIdEnabled)

setMessageTimestampEnabled

public void setMessageTimestampEnabled(boolean messageTimestampEnabled)

setPriority

public void setPriority(int priority)

setTimeToLive

public void setTimeToLive(long timeToLive)

setAcceptMessagesWhileStopping

public void setAcceptMessagesWhileStopping(boolean acceptMessagesWhileStopping)

setAutoStartup

public void setAutoStartup(boolean autoStartup)

setCacheLevelName

public void setCacheLevelName(java.lang.String cacheLevelName)

setClientId

public void setClientId(java.lang.String clientId)

setConcurrency

public void setConcurrency(java.lang.String concurrency)

setConcurrentConsumers

public void setConcurrentConsumers(int concurrentConsumers)

setConnectionFactory

public void setConnectionFactory(javax.jms.ConnectionFactory connectionFactory)

setContainerType

public void setContainerType(java.lang.Class<? extends AbstractMessageListenerContainer> containerType)

setDestination

public void setDestination(javax.jms.Destination destination)

setDestinationName

public void setDestinationName(java.lang.String destinationName)

setDestinationResolver

public void setDestinationResolver(DestinationResolver destinationResolver)

setDurableSubscriptionName

public void setDurableSubscriptionName(java.lang.String durableSubscriptionName)

setErrorHandler

public void setErrorHandler(ErrorHandler errorHandler)

setExceptionListener

public void setExceptionListener(javax.jms.ExceptionListener exceptionListener)

setExposeListenerSession

public void setExposeListenerSession(boolean exposeListenerSession)

setIdleTaskExecutionLimit

public void setIdleTaskExecutionLimit(int idleTaskExecutionLimit)

setMaxConcurrentConsumers

public void setMaxConcurrentConsumers(int maxConcurrentConsumers)

setMaxMessagesPerTask

public void setMaxMessagesPerTask(int maxMessagesPerTask)

setMessageSelector

public void setMessageSelector(java.lang.String messageSelector)

setPhase

public void setPhase(int phase)

setPubSubDomain

public void setPubSubDomain(boolean pubSubDomain)

setPubSubNoLocal

public void setPubSubNoLocal(boolean pubSubNoLocal)

setReceiveTimeout

public void setReceiveTimeout(long receiveTimeout)

setRecoveryInterval

public void setRecoveryInterval(long recoveryInterval)

setSessionAcknowledgeMode

public void setSessionAcknowledgeMode(int sessionAcknowledgeMode)

setSessionTransacted

public void setSessionTransacted(boolean sessionTransacted)

setSubscriptionDurable

public void setSubscriptionDurable(boolean subscriptionDurable)

setTaskExecutor

public void setTaskExecutor(java.util.concurrent.Executor taskExecutor)

setTransactionManager

public void setTransactionManager(PlatformTransactionManager transactionManager)

setTransactionName

public void setTransactionName(java.lang.String transactionName)

setTransactionTimeout

public void setTransactionTimeout(int transactionTimeout)

setBeanName

public void setBeanName(java.lang.String name)
Specified by:
setBeanName in interface BeanNameAware

getObjectType

public java.lang.Class<?> getObjectType()
Specified by:
getObjectType in interface FactoryBean<AbstractJmsChannel>
Specified by:
getObjectType in class AbstractFactoryBean<AbstractJmsChannel>

createInstance

protected AbstractJmsChannel createInstance()
                                     throws java.lang.Exception
Specified by:
createInstance in class AbstractFactoryBean<AbstractJmsChannel>
Throws:
java.lang.Exception

isAutoStartup

public boolean isAutoStartup()
Specified by:
isAutoStartup in interface SmartLifecycle

getPhase

public int getPhase()
Specified by:
getPhase in interface Phased

isRunning

public boolean isRunning()
Specified by:
isRunning in interface Lifecycle

start

public void start()
Specified by:
start in interface Lifecycle

stop

public void stop()
Specified by:
stop in interface Lifecycle

stop

public void stop(java.lang.Runnable callback)
Specified by:
stop in interface SmartLifecycle

destroyInstance

protected void destroyInstance(AbstractJmsChannel instance)
                        throws java.lang.Exception
Overrides:
destroyInstance in class AbstractFactoryBean<AbstractJmsChannel>
Throws:
java.lang.Exception