org.codehaus.activemq.jca
Class JCABeanFactory

java.lang.Object
  extended byorg.springframework.beans.factory.support.AbstractBeanFactory
      extended byorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory
          extended byorg.springframework.beans.factory.support.DefaultListableBeanFactory
              extended byorg.codehaus.activemq.jca.JCABeanFactory
All Implemented Interfaces:
org.springframework.beans.factory.config.AutowireCapableBeanFactory, org.springframework.beans.factory.support.BeanDefinitionRegistry, org.springframework.beans.factory.BeanFactory, org.springframework.beans.factory.config.ConfigurableBeanFactory, org.springframework.beans.factory.config.ConfigurableListableBeanFactory, org.springframework.beans.factory.HierarchicalBeanFactory, org.springframework.beans.factory.ListableBeanFactory

public class JCABeanFactory
extends org.springframework.beans.factory.support.DefaultListableBeanFactory

A Spring BeanFactory for creating an JCA container

Version:
$Revision: 1.2 $

Field Summary
 
Fields inherited from class org.springframework.beans.factory.support.AbstractBeanFactory
logger
 
Fields inherited from interface org.springframework.beans.factory.BeanFactory
FACTORY_BEAN_PREFIX
 
Fields inherited from interface org.springframework.beans.factory.config.AutowireCapableBeanFactory
AUTOWIRE_AUTODETECT, AUTOWIRE_BY_NAME, AUTOWIRE_BY_TYPE, AUTOWIRE_CONSTRUCTOR
 
Constructor Summary
JCABeanFactory(InputStream is)
          Create a new JCABeanFactory with the given InputStream, which must be parsable using DOM.
JCABeanFactory(org.springframework.core.io.Resource resource)
          Create a new JCABeanFactory with the given resource, which must be parsable using DOM.
JCABeanFactory(org.springframework.core.io.Resource resource, org.springframework.beans.factory.BeanFactory parentBeanFactory)
          Create a new JCABeanFactory with the given input stream, which must be parsable using DOM.
 
Method Summary
protected  org.springframework.beans.factory.xml.XmlBeanDefinitionReader createReader()
          A hook to allow custom ActiveMQBeanFactory implementations to provide their own custom parser of the XML to perform macro processing or perform XSLT etc
protected  org.springframework.beans.factory.xml.XmlBeanDefinitionReader getReader()
          Lazily creates a reader on demand
 
Methods inherited from class org.springframework.beans.factory.support.DefaultListableBeanFactory
containsBeanDefinition, findMatchingBeans, getBeanDefinition, getBeanDefinitionCount, getBeanDefinitionNames, getBeanDefinitionNames, getBeanNamesForType, getBeanNamesForType, getBeansOfType, getBeansOfType, preInstantiateSingletons, registerBeanDefinition, setAllowBeanDefinitionOverriding, toString
 
Methods inherited from class org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory
applyBeanPostProcessorsAfterInitialization, applyBeanPostProcessorsBeforeInitialization, applyBeanPostProcessorsBeforeInstantiation, applyBeanPropertyValues, autowire, autowireBeanProperties, autowireByName, autowireByType, autowireConstructor, checkDependencies, createBean, getIgnoredDependencyInterfaces, getIgnoredDependencyTypes, getInstantiationStrategy, getTypeForFactoryMethod, ignoreDependencyInterface, ignoreDependencyType, instantiateBean, instantiateUsingFactoryMethod, invokeCustomInitMethod, invokeInitMethods, isExcludedFromDependencyCheck, populateBean, setInstantiationStrategy, unsatisfiedNonSimpleProperties
 
Methods inherited from class org.springframework.beans.factory.support.AbstractBeanFactory
addBeanPostProcessor, addSingleton, checkMergedBeanDefinition, containsBean, containsSingleton, destroyBean, destroySingletons, doTypeConversionIfNecessary, doTypeConversionIfNecessary, getAliases, getBean, getBean, getBean, getBean, getBeanPostProcessorCount, getBeanPostProcessors, getCustomEditors, getMergedBeanDefinition, getMergedBeanDefinition, getMergedBeanDefinition, getObjectForSharedInstance, getParentBeanFactory, getSingletonCount, getSingletonNames, getType, hasDestructionAwareBeanPostProcessors, initBeanWrapper, invokeCustomDestroyMethod, isFactoryBean, isFactoryDereference, isSingleton, isSingletonCurrentlyInCreation, registerAlias, registerCustomEditor, registerDependentBean, registerDisposableBean, registerDisposableBeanIfNecessary, registerSingleton, removeSingleton, setParentBeanFactory, transformedBeanName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.springframework.beans.factory.config.ConfigurableListableBeanFactory
ignoreDependencyInterface, ignoreDependencyType
 
Methods inherited from interface org.springframework.beans.factory.BeanFactory
containsBean, getAliases, getBean, getBean, getType, isSingleton
 
Methods inherited from interface org.springframework.beans.factory.config.AutowireCapableBeanFactory
applyBeanPostProcessorsAfterInitialization, applyBeanPostProcessorsBeforeInitialization, applyBeanPropertyValues, autowire, autowireBeanProperties
 
Methods inherited from interface org.springframework.beans.factory.config.ConfigurableBeanFactory
addBeanPostProcessor, containsSingleton, destroySingletons, getBeanPostProcessorCount, registerAlias, registerCustomEditor, registerSingleton, setParentBeanFactory
 
Methods inherited from interface org.springframework.beans.factory.HierarchicalBeanFactory
getParentBeanFactory
 
Methods inherited from interface org.springframework.beans.factory.support.BeanDefinitionRegistry
getAliases, registerAlias
 

Constructor Detail

JCABeanFactory

public JCABeanFactory(org.springframework.core.io.Resource resource)
               throws org.springframework.beans.BeansException
Create a new JCABeanFactory with the given resource, which must be parsable using DOM.

Parameters:
resource - XML resource to load bean definitions from
Throws:
org.springframework.beans.BeansException - in case of loading or parsing errors

JCABeanFactory

public JCABeanFactory(InputStream is)
               throws org.springframework.beans.BeansException
Create a new JCABeanFactory with the given InputStream, which must be parsable using DOM.

It's preferable to use a Resource argument instead of an InputStream, to retain location information. This constructor is mainly kept for backward compatibility.

Parameters:
is - XML InputStream to load bean definitions from
Throws:
org.springframework.beans.BeansException - in case of loading or parsing errors
See Also:
JCABeanFactory(org.springframework.core.io.Resource)

JCABeanFactory

public JCABeanFactory(org.springframework.core.io.Resource resource,
                      org.springframework.beans.factory.BeanFactory parentBeanFactory)
               throws org.springframework.beans.BeansException
Create a new JCABeanFactory with the given input stream, which must be parsable using DOM.

Parameters:
resource - XML resource to load bean definitions from
parentBeanFactory - parent bean factory
Throws:
org.springframework.beans.BeansException - in case of loading or parsing errors
Method Detail

getReader

protected org.springframework.beans.factory.xml.XmlBeanDefinitionReader getReader()
Lazily creates a reader on demand

Returns:

createReader

protected org.springframework.beans.factory.xml.XmlBeanDefinitionReader createReader()
A hook to allow custom ActiveMQBeanFactory implementations to provide their own custom parser of the XML to perform macro processing or perform XSLT etc

Returns:


Copyright © 2004-2005 Protique, Ltd.. All Rights Reserved.