Package org.jboss.spring.factory

Examples of org.jboss.spring.factory.NamedXmlApplicationContext


public class MicrocontainerLoaderImpl extends AbstractBeanFactoryLoader
{

   protected BeanFactory createBeanFactory(String defaultName, Resource resource)
   {
      ConfigurableApplicationContext applicationContext = new NamedXmlApplicationContext(defaultName, resource, false);
      MicrocontainerConfigurer microcontainerPostProcessor = new MicrocontainerConfigurer();
      Locator locator = new NullLocator();
      KernelController controller = getKernelController();
      Kernel kernel = getKernel();
      if (controller != null)
      {
         locator = new ControllerLocator(controller);
      }
      else if (kernel != null)
      {
         locator = new KernelLocator(kernel);
      }
      microcontainerPostProcessor.setLocator(locator);
      applicationContext.addBeanFactoryPostProcessor(microcontainerPostProcessor);
      applicationContext.refresh();
      return applicationContext;
   }
View Full Code Here


   {
      return new SpringDeploymentVisitor()
      {
         protected ConfigurableApplicationContext doCreate(SpringMetaData metaData)
         {
            return new NamedXmlApplicationContext(metaData.getDefaultName(), metaData.getResource());
         }

         protected void doClose(ConfigurableApplicationContext beanFactory)
         {
            beanFactory.close();
View Full Code Here

@Deprecated
public class ApplicationContextLoaderImpl extends AbstractBeanFactoryLoader
{
   protected BeanFactory createBeanFactory(String defaultName, Resource resource)
   {
      return new NamedXmlApplicationContext(defaultName, resource);
   }
View Full Code Here

TOP

Related Classes of org.jboss.spring.factory.NamedXmlApplicationContext

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.