Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.activemq.spring
Class ActiveMQBeanDefinitionReader  view ActiveMQBeanDefinitionReader download ActiveMQBeanDefinitionReader.java

java.lang.Object
  extended byorg.springframework.beans.factory.support.AbstractBeanDefinitionReader
      extended byorg.springframework.beans.factory.xml.XmlBeanDefinitionReader
          extended byorg.activemq.spring.ActiveMQBeanDefinitionReader
All Implemented Interfaces:
org.springframework.beans.factory.support.BeanDefinitionReader

public class ActiveMQBeanDefinitionReader
extends org.springframework.beans.factory.xml.XmlBeanDefinitionReader

Version:
$Revision$

Field Summary
private  java.lang.String brokerName
           
 
Fields inherited from class org.springframework.beans.factory.xml.XmlBeanDefinitionReader
 
Fields inherited from class org.springframework.beans.factory.support.AbstractBeanDefinitionReader
logger
 
Constructor Summary
ActiveMQBeanDefinitionReader(org.springframework.beans.factory.support.BeanDefinitionRegistry beanDefinitionRegistry, java.lang.String brokerName)
           
 
Method Summary
protected  org.xml.sax.EntityResolver createEntityResolver()
           
static javax.xml.transform.Transformer createTransformer(javax.xml.transform.Source source)
           
protected  javax.xml.transform.Source createXslSource()
          Creates the XSL resource for the transformation
 java.lang.String getBrokerName()
           
protected  org.springframework.core.io.ClassPathResource getXslResource()
           
 int registerBeanDefinitions(org.w3c.dom.Document document, org.springframework.core.io.Resource resource)
          Register the bean definitions contained in the given DOM document.
 void setBrokerName(java.lang.String brokerName)
           
protected  org.w3c.dom.Document transformDocument(org.w3c.dom.Document document)
          A hook to transform the source document into a default Spring XML configuration
 
Methods inherited from class org.springframework.beans.factory.xml.XmlBeanDefinitionReader
loadBeanDefinitions, setEntityResolver, setErrorHandler, setParserClass, setValidating
 
Methods inherited from class org.springframework.beans.factory.support.AbstractBeanDefinitionReader
getBeanClassLoader, getBeanFactory, getResourceLoader, loadBeanDefinitions, setBeanClassLoader, setResourceLoader
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

brokerName

private java.lang.String brokerName
Constructor Detail

ActiveMQBeanDefinitionReader

public ActiveMQBeanDefinitionReader(org.springframework.beans.factory.support.BeanDefinitionRegistry beanDefinitionRegistry,
                                    java.lang.String brokerName)
Method Detail

registerBeanDefinitions

public int registerBeanDefinitions(org.w3c.dom.Document document,
                                   org.springframework.core.io.Resource resource)
                            throws org.springframework.beans.BeansException
Description copied from class: org.springframework.beans.factory.xml.XmlBeanDefinitionReader
Register the bean definitions contained in the given DOM document. Called by loadBeanDefinitions.

Creates a new instance of the parser class and invokes registerBeanDefinitions on it.


createTransformer

public static javax.xml.transform.Transformer createTransformer(javax.xml.transform.Source source)
                                                         throws javax.xml.transform.TransformerConfigurationException

getBrokerName

public java.lang.String getBrokerName()

setBrokerName

public void setBrokerName(java.lang.String brokerName)

transformDocument

protected org.w3c.dom.Document transformDocument(org.w3c.dom.Document document)
                                          throws java.io.IOException,
                                                 javax.xml.transform.TransformerException
A hook to transform the source document into a default Spring XML configuration


createXslSource

protected javax.xml.transform.Source createXslSource()
                                              throws java.io.IOException
Creates the XSL resource for the transformation


getXslResource

protected org.springframework.core.io.ClassPathResource getXslResource()

createEntityResolver

protected org.xml.sax.EntityResolver createEntityResolver()