Examples of ClassPathXmlApplicationContext


Examples of org.apache.xbean.spring.context.ClassPathXmlApplicationContext

public class JMSExampleTest
    extends AbstractXFireSpringTest
{
    protected ApplicationContext createContext()
    {
        return new ClassPathXmlApplicationContext(new String[] {
                "/org/codehaus/xfire/transport/jms/example/jms.xml",
                "/org/codehaus/xfire/spring/xfire.xml" })
    }
View Full Code Here

Examples of org.apache.xbean.spring.context.ClassPathXmlApplicationContext

public class JMSQueueExampleTest
    extends AbstractXFireSpringTest
{
    protected ApplicationContext createContext()
    {
        return new ClassPathXmlApplicationContext(new String[] {
                "/org/codehaus/xfire/transport/jms/example/jms-queue.xml",
                "/org/codehaus/xfire/spring/xfire.xml" })
    }
View Full Code Here

Examples of org.apache.xbean.spring.context.ClassPathXmlApplicationContext

public class JMSTopicExampleTest
    extends AbstractXFireSpringTest
{
    protected ApplicationContext createContext()
    {
        return new ClassPathXmlApplicationContext(new String[] {
                "/org/codehaus/xfire/transport/jms/example/jms-topic.xml",
                "/org/codehaus/xfire/spring/xfire.xml" })
    }
View Full Code Here

Examples of org.apache.xbean.spring.context.ClassPathXmlApplicationContext

    extends AbstractXFireSpringTest
{
    protected ApplicationContext createContext()
    {
        return
            new ClassPathXmlApplicationContext(new String[] {
                "/org/codehaus/xfire/spring/examples/customType.xml",
                "/org/codehaus/xfire/spring/xfire.xml" });
    }
View Full Code Here

Examples of org.apache.xbean.spring.context.ClassPathXmlApplicationContext

    extends TestCase
{
    public void testLoading()
        throws Exception
    {
        ClassPathXmlApplicationContext context =
            new ClassPathXmlApplicationContext(new String[] {
                "/org/codehaus/xfire/spring/examples/simple.xml",
                "/org/codehaus/xfire/spring/xfire.xml" });

        ServiceRegistry reg = (ServiceRegistry) context.getBean("xfire.serviceRegistry");
        assertTrue(reg.hasService("Echo"));
    }
View Full Code Here

Examples of org.apache.xbean.spring.context.ClassPathXmlApplicationContext

    }
      
    public void testConfigLoaderWithParentContext() throws Exception
    {
      ServletContext servletCtx = new MockServletContext();
      ClassPathXmlApplicationContext appCtx = new ClassPathXmlApplicationContext(new String[] {"org/codehaus/xfire/spring/xfire.xml"});

        XFireConfigLoader configLoader = new XFireConfigLoader();
        XFire xfire = configLoader.loadConfig("META-INF/xfire/sservices.xml", appCtx);

        doAssertions(xfire);
View Full Code Here

Examples of org.apache.xbean.spring.context.ClassPathXmlApplicationContext

        assertTrue(serviceBean.getInvoker() instanceof ObjectInvoker);
    }
   
    protected ApplicationContext createContext()
    {
        return new ClassPathXmlApplicationContext(new String[] {
                "org/codehaus/xfire/spring/xfire.xml", "META-INF/xfire/sservices.xml" });
    }
View Full Code Here

Examples of org.apache.xbean.spring.context.ClassPathXmlApplicationContext

        assertNull(opInfo);
    }
   
    protected ApplicationContext createContext()
    {
        return new ClassPathXmlApplicationContext(new String[] {
                "org/codehaus/xfire/spring/xfire.xml", "/org/codehaus/xfire/spring/config/OperationMetadataServices.xml" });
    }
View Full Code Here

Examples of org.apache.xbean.spring.context.ClassPathXmlApplicationContext

        Document wsdl = getWSDLDocument("WeatherService");
    }
   
    protected ApplicationContext createContext()
    {
        return new ClassPathXmlApplicationContext(new String[] {
           "/org/codehaus/xfire/spring/xfire.xml",
           "/META-INF/xfire/services.xml"
        });
    }
View Full Code Here

Examples of org.springframework.context.support.ClassPathXmlApplicationContext

        if (StringUtils.hasText(startupContextPath)) {
            if (logger.isInfoEnabled()) {
                logger.info("Loading startup context from classpath resource [" + startupContextPath + "]");
            }

            return new ClassPathXmlApplicationContext(startupContextPath);
        } else {
            return null;
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.