org.mule.extras.spring.config
Class MuleBeanDefinitionReader

java.lang.Object
  extended byXmlBeanDefinitionReader
      extended byorg.mule.extras.spring.config.MuleBeanDefinitionReader

public class MuleBeanDefinitionReader
extends XmlBeanDefinitionReader

MuleBeanDefinitionReader Is a custom Spring Bean reader that will apply a transformation to Mule Xml configuration files before loading bean definitions allowing Mule Xml config to be parsed as Spring configuration.

Version:
$Revision: 1.4 $
Author:
Ross Mason
See Also:
Serialized Form

Constructor Summary
MuleBeanDefinitionReader(BeanDefinitionRegistry beanDefinitionRegistry, int configCount)
           
 
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()
           
protected  ClassPathResource getXslResource()
           
static boolean isFirstContext()
           
 int registerBeanDefinitions(org.w3c.dom.Document document, Resource resource)
           
protected  org.w3c.dom.Document transformDocument(org.w3c.dom.Document document)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MuleBeanDefinitionReader

public MuleBeanDefinitionReader(BeanDefinitionRegistry beanDefinitionRegistry,
                                int configCount)
Method Detail

registerBeanDefinitions

public int registerBeanDefinitions(org.w3c.dom.Document document,
                                   Resource resource)
                            throws BeansException
Throws:
BeansException

createTransformer

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

transformDocument

protected org.w3c.dom.Document transformDocument(org.w3c.dom.Document document)
                                          throws java.io.IOException,
                                                 javax.xml.transform.TransformerException
Throws:
java.io.IOException
javax.xml.transform.TransformerException

createXslSource

protected javax.xml.transform.Source createXslSource()
                                              throws java.io.IOException
Throws:
java.io.IOException

getXslResource

protected ClassPathResource getXslResource()

createEntityResolver

protected org.xml.sax.EntityResolver createEntityResolver()

isFirstContext

public static boolean isFirstContext()


Copyright © 2003-2005 SymphonySoft Limited. All Rights Reserved.