Package 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 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.
-
-
Constructor Summary
Constructors Constructor Description PooledBrokerFactoryBean()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
afterPropertiesSet()
void
destroy()
org.springframework.core.io.Resource
getConfig()
Object
getObject()
Class
getObjectType()
boolean
isSingleton()
boolean
isStart()
void
setConfig(org.springframework.core.io.Resource config)
void
setStart(boolean start)
-
-
-
Method Detail
-
afterPropertiesSet
public void afterPropertiesSet() throws Exception
- Specified by:
afterPropertiesSet
in interfaceorg.springframework.beans.factory.InitializingBean
- Throws:
Exception
-
destroy
public void destroy() throws Exception
- Specified by:
destroy
in interfaceorg.springframework.beans.factory.DisposableBean
- Throws:
Exception
-
getConfig
public org.springframework.core.io.Resource getConfig()
-
getObject
public Object getObject() throws Exception
- Specified by:
getObject
in interfaceorg.springframework.beans.factory.FactoryBean
- Throws:
Exception
-
getObjectType
public Class getObjectType()
- Specified by:
getObjectType
in interfaceorg.springframework.beans.factory.FactoryBean
-
isSingleton
public boolean isSingleton()
- Specified by:
isSingleton
in interfaceorg.springframework.beans.factory.FactoryBean
-
isStart
public boolean isStart()
-
setConfig
public void setConfig(org.springframework.core.io.Resource config)
-
setStart
public void setStart(boolean start)
-
-