Package org.apache.xbean.spring.context

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


* @version $Revision: 1.1 $
*/
public class TopicBridgeXBeanTest extends TopicBridgeSpringTest {

    protected AbstractApplicationContext createApplicationContext() {
        return new ClassPathXmlApplicationContext("org/apache/activemq/network/jms/topic-config.xml");
    }
View Full Code Here


* @version $Revision: 426366 $
*/
public class QueueBridgeXBeanTest extends QueueBridgeTest {

    protected AbstractApplicationContext createApplicationContext() {
        return new ClassPathXmlApplicationContext("org/apache/activemq/network/jms/queue-xbean.xml");
    }
View Full Code Here

    }

    public BrokerService createBroker(URI config) throws Exception {

        String uri = config.getSchemeSpecificPart();
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext(uri);

        BrokerService broker = null;
        try {
            broker = (BrokerService) context.getBean("broker");
        }
        catch (BeansException e) {
        }

        if (broker == null) {
            // lets try find by type
            String[] names = context.getBeanNamesForType(BrokerService.class);
            for (int i = 0; i < names.length; i++) {
                String name = names[i];
                broker = (BrokerService) context.getBean(name);
                if (broker != null) {
                    break;
                }
            }
        }
View Full Code Here

        }
        client.done(me);
    }
   
    protected AbstractXmlApplicationContext createBeanFactory() {
        return new ClassPathXmlApplicationContext("spring.xml");
    }
View Full Code Here

import org.springframework.context.support.AbstractXmlApplicationContext;

public class Jsr181HttpTest extends SpringTestSupport {

    protected AbstractXmlApplicationContext createBeanFactory() {
        return new ClassPathXmlApplicationContext("org/apache/servicemix/itests/jsr181http.xml");
    }
View Full Code Here

            logger.info(new SourceTransformer().toString(me.getOutMessage().getContent()));
        }
    }
   
    protected AbstractXmlApplicationContext createBeanFactory() {
        return new ClassPathXmlApplicationContext("org/apache/servicemix/jsr181/spring-proxy.xml");
    }
View Full Code Here

import org.springframework.context.support.AbstractXmlApplicationContext;

public class PersonTest extends SpringTestSupport {

    protected AbstractXmlApplicationContext createBeanFactory() {
        return new ClassPathXmlApplicationContext("org/apache/servicemix/itests/person.xml");
    }
View Full Code Here

            method.releaseConnection();
        }
    }

    protected AbstractXmlApplicationContext createBeanFactory() {
        return new ClassPathXmlApplicationContext("org/apache/servicemix/http/security/secure.xml");
    }
View Full Code Here

        client.send(resolver, null, null, content);
    }

    protected AbstractXmlApplicationContext createBeanFactory() {
        return new ClassPathXmlApplicationContext(new String[] {
                "/org/apache/servicemix/components/xfire/xfire-out.xml",
                "/org/codehaus/xfire/spring/xfire.xml"
        });
    }
View Full Code Here

        assertEquals("id", att.getName().toLowerCase());
        assertEquals("subject", "Drink a beer James", message.getSubject());
    }

    protected AbstractXmlApplicationContext createBeanFactory() {
        return new ClassPathXmlApplicationContext("org/apache/servicemix/components/email/mimeMail.xml");
    }
View Full Code Here

TOP

Related Classes of org.apache.xbean.spring.context.ClassPathXmlApplicationContext

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.