View Javadoc
1   /*
2    * Copyright (c) MuleSoft, Inc.  All rights reserved.  http://www.mulesoft.com
3    * The software in this package is published under the terms of the CPAL v1.0
4    * license, a copy of which has been included with this distribution in the
5    * LICENSE.txt file.
6    */
7   package org.mule.config.spring.parsers;
8   
9   import org.springframework.beans.factory.config.BeanDefinition;
10  import org.springframework.beans.factory.support.BeanDefinitionBuilder;
11  import org.springframework.beans.factory.xml.BeanDefinitionParser;
12  import org.springframework.beans.factory.xml.ParserContext;
13  import org.w3c.dom.Element;
14  
15  public class IndependentDefinitionParser implements BeanDefinitionParser
16  {
17  
18      public BeanDefinition parse(Element element, ParserContext parserContext)
19      {
20          BeanDefinitionBuilder builder = BeanDefinitionBuilder.rootBeanDefinition(Object.class);
21          return builder.getBeanDefinition();
22      }
23  
24  }