org.apache.activemq.xbean
Class PooledBrokerFactoryBean
java.lang.Object
org.apache.activemq.xbean.PooledBrokerFactoryBean
- All Implemented Interfaces:
- org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.FactoryBean, org.springframework.beans.factory.InitializingBean
public class PooledBrokerFactoryBean
- extends java.lang.Object
- implements org.springframework.beans.factory.FactoryBean, org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBean
Used to share a single broker even if you have multiple broker bean
definitions. A use case is where you have multiple web applications that want
to start an embedded broker but only the first one to deploy should actually
start it.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PooledBrokerFactoryBean
public PooledBrokerFactoryBean()
afterPropertiesSet
public void afterPropertiesSet()
throws java.lang.Exception
- Specified by:
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
- Throws:
java.lang.Exception
destroy
public void destroy()
throws java.lang.Exception
- Specified by:
destroy
in interface org.springframework.beans.factory.DisposableBean
- Throws:
java.lang.Exception
getConfig
public org.springframework.core.io.Resource getConfig()
getObject
public java.lang.Object getObject()
throws java.lang.Exception
- Specified by:
getObject
in interface org.springframework.beans.factory.FactoryBean
- Throws:
java.lang.Exception
getObjectType
public java.lang.Class getObjectType()
- Specified by:
getObjectType
in interface org.springframework.beans.factory.FactoryBean
isSingleton
public boolean isSingleton()
- Specified by:
isSingleton
in interface org.springframework.beans.factory.FactoryBean
isStart
public boolean isStart()
setConfig
public void setConfig(org.springframework.core.io.Resource config)
setStart
public void setStart(boolean start)
Copyright © 2005-2015. All Rights Reserved.