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
FactoryBean
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 and Description |
---|
BrokerFactoryBean() |
BrokerFactoryBean(org.springframework.core.io.Resource config) |
Modifier and Type | Method and 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) |
public BrokerFactoryBean()
public BrokerFactoryBean(org.springframework.core.io.Resource config)
public Object getObject() throws Exception
getObject
in interface org.springframework.beans.factory.FactoryBean
Exception
public Class getObjectType()
getObjectType
in interface org.springframework.beans.factory.FactoryBean
public boolean isSingleton()
isSingleton
in interface org.springframework.beans.factory.FactoryBean
public void setApplicationContext(org.springframework.context.ApplicationContext parentContext) throws org.springframework.beans.BeansException
setApplicationContext
in interface org.springframework.context.ApplicationContextAware
org.springframework.beans.BeansException
public void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
Exception
public void destroy() throws Exception
destroy
in interface org.springframework.beans.factory.DisposableBean
Exception
public org.springframework.core.io.Resource getConfig()
public void setConfig(org.springframework.core.io.Resource config)
public BrokerService getBroker()
public boolean isStart()
public void setStart(boolean start)
public boolean isSystemExitOnStop()
public void setSystemExitOnStop(boolean systemExitOnStop)
public boolean isSystemExitOnShutdown()
public void setSystemExitOnShutdown(boolean systemExitOnShutdown)
public int getSystemExitOnShutdownExitCode()
public void setSystemExitOnShutdownExitCode(int systemExitOnShutdownExitCode)
Copyright © 2005–2014 The Apache Software Foundation. All rights reserved.