Package org.apache.activemq.xbean
Class BrokerFactoryBean
- java.lang.Object
-
- org.apache.activemq.xbean.BrokerFactoryBean
-
- All Implemented Interfaces:
org.springframework.beans.factory.Aware
,org.springframework.beans.factory.DisposableBean
,org.springframework.beans.factory.FactoryBean
,org.springframework.beans.factory.InitializingBean
,org.springframework.context.ApplicationContextAware
public class BrokerFactoryBean extends Object implements org.springframework.beans.factory.FactoryBean, org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBean, org.springframework.context.ApplicationContextAware
A SpringFactoryBean
which creates an embedded broker inside a Spring XML using an external XBean Spring XML configuration file which provides a much neater and more concise XML format.
-
-
Constructor Summary
Constructors Constructor Description BrokerFactoryBean()
BrokerFactoryBean(org.springframework.core.io.Resource config)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
afterPropertiesSet()
void
destroy()
BrokerService
getBroker()
org.springframework.core.io.Resource
getConfig()
Object
getObject()
Class
getObjectType()
int
getSystemExitOnShutdownExitCode()
boolean
isSingleton()
boolean
isStart()
boolean
isSystemExitOnShutdown()
boolean
isSystemExitOnStop()
void
setApplicationContext(org.springframework.context.ApplicationContext parentContext)
void
setConfig(org.springframework.core.io.Resource config)
void
setStart(boolean start)
void
setSystemExitOnShutdown(boolean systemExitOnShutdown)
void
setSystemExitOnShutdownExitCode(int systemExitOnShutdownExitCode)
void
setSystemExitOnStop(boolean systemExitOnStop)
-
-
-
Method Detail
-
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
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext parentContext) throws org.springframework.beans.BeansException
- Specified by:
setApplicationContext
in interfaceorg.springframework.context.ApplicationContextAware
- Throws:
org.springframework.beans.BeansException
-
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()
-
setConfig
public void setConfig(org.springframework.core.io.Resource config)
-
getBroker
public BrokerService getBroker()
-
isStart
public boolean isStart()
-
setStart
public void setStart(boolean start)
-
isSystemExitOnStop
public boolean isSystemExitOnStop()
-
setSystemExitOnStop
public void setSystemExitOnStop(boolean systemExitOnStop)
-
isSystemExitOnShutdown
public boolean isSystemExitOnShutdown()
-
setSystemExitOnShutdown
public void setSystemExitOnShutdown(boolean systemExitOnShutdown)
-
getSystemExitOnShutdownExitCode
public int getSystemExitOnShutdownExitCode()
-
setSystemExitOnShutdownExitCode
public void setSystemExitOnShutdownExitCode(int systemExitOnShutdownExitCode)
-
-