org.apache.activemq.xbean
Class BrokerFactoryBean
java.lang.Object
org.apache.activemq.xbean.BrokerFactoryBean
- All Implemented Interfaces:
- org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.FactoryBean, org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationContextAware
public class BrokerFactoryBean
- extends java.lang.Object
- implements org.springframework.beans.factory.FactoryBean, org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBean, org.springframework.context.ApplicationContextAware
A Spring 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.
- Version:
- $Revision: 1.1 $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BrokerFactoryBean
public BrokerFactoryBean()
BrokerFactoryBean
public BrokerFactoryBean(org.springframework.core.io.Resource config)
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
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext parentContext)
throws org.springframework.beans.BeansException
- Specified by:
setApplicationContext
in interface org.springframework.context.ApplicationContextAware
- Throws:
org.springframework.beans.BeansException
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()
setConfig
public void setConfig(org.springframework.core.io.Resource config)
getBroker
public BrokerService getBroker()
isStart
public boolean isStart()
setStart
public void setStart(boolean start)
Copyright © 2011 Apache Software Foundation. All Rights Reserved.