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.

See Also:
Serialized Form

Constructor Summary
MuleBeanDefinitionReader(BeanDefinitionRegistry beanDefinitionRegistry, int configCount)
           
 
Method Summary
protected  EntityResolver createEntityResolver()
           
static Transformer createTransformer(Source source)
           
protected  Source createXslSource()
           
protected  ClassPathResource getXslResource()
           
 boolean isFirstContext()
           
 int registerBeanDefinitions(Document document, Resource resource)
           
protected  Document transformDocument(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(Document document,
                                   Resource resource)
                            throws BeansException
Throws:
BeansException

createTransformer

public static Transformer createTransformer(Source source)
                                     throws TransformerConfigurationException
Throws:
TransformerConfigurationException

transformDocument

protected Document transformDocument(Document document)
                              throws IOException,
                                     TransformerException
Throws:
IOException
TransformerException

createXslSource

protected Source createXslSource()
                          throws IOException
Throws:
IOException

getXslResource

protected ClassPathResource getXslResource()

createEntityResolver

protected EntityResolver createEntityResolver()

isFirstContext

public boolean isFirstContext()


Copyright © 2003-2006 MuleSource Inc.. All Rights Reserved.