Examples of SpringLoader


Examples of org.apache.xbean.server.spring.loader.SpringLoader

            su.setRootPath(serviceUnitRootPath);
            // Load configuration
            ClassLoader classLoader = component.getClass().getClassLoader();
            Thread.currentThread().setContextClassLoader(classLoader);

            SpringLoader springLoader = createSpringLoader();
            springLoader.setKernel(kernel);
            springLoader.setBaseDir(new File(serviceUnitRootPath));
            springLoader.setXmlPreprocessors(getXmlPreProcessors(serviceUnitRootPath));
            springLoader.setBeanFactoryPostProcessors(getBeanFactoryPostProcessors(serviceUnitRootPath));
           
            ServiceName configurationName = springLoader.load(getXBeanFile());
            kernel.startService(configurationName);
            su.setConfiguration(configurationName);
            // Use SU classloader
            Thread.currentThread().setContextClassLoader(su.getConfigurationClassLoader());
            // Retrieve endpoints
View Full Code Here

Examples of org.apache.xbean.server.spring.loader.SpringLoader

    /**
     * A factory method to allow derived classes to create alternative spring loaders
     */
    protected SpringLoader createSpringLoader() {
        return new SpringLoader();
    }
View Full Code Here

Examples of org.apache.xbean.server.spring.loader.SpringLoader

            su.setName(serviceUnitName);
            su.setRootPath(serviceUnitRootPath);
            // Load configuration
            Thread.currentThread().setContextClassLoader(getClass().getClassLoader());

            SpringLoader springLoader = new SpringLoader();
            springLoader.setKernel(kernel);
            springLoader.setBaseDir(new File(serviceUnitRootPath));
            springLoader.setXmlPreprocessors(getXmlPreProcessors(serviceUnitRootPath));
            springLoader.setBeanFactoryPostProcessors(getBeanFactoryPostProcessors(serviceUnitRootPath));
           
            ServiceName configurationName = springLoader.load(getXBeanFile());
            kernel.startService(configurationName);
            su.setConfiguration(configurationName);
            // Retrieve endpoints
            List services = getServices(kernel);
            if (services == null || services.size() == 0) {
View Full Code Here

Examples of org.apache.xbean.server.spring.loader.SpringLoader

            su.setName(serviceUnitName);
            su.setRootPath(serviceUnitRootPath);
            // Load configuration
            Thread.currentThread().setContextClassLoader(component.getClass().getClassLoader());

            SpringLoader springLoader = createSpringLoader();
            springLoader.setKernel(kernel);
            springLoader.setBaseDir(new File(serviceUnitRootPath));
            springLoader.setXmlPreprocessors(getXmlPreProcessors(serviceUnitRootPath));
            springLoader.setBeanFactoryPostProcessors(getBeanFactoryPostProcessors(serviceUnitRootPath));
           
            ServiceName configurationName = springLoader.load(getXBeanFile());
            kernel.startService(configurationName);
            su.setConfiguration(configurationName);
            // Use SU classloader
            Thread.currentThread().setContextClassLoader(su.getConfigurationClassLoader());
            // Retrieve endpoints
View Full Code Here

Examples of org.apache.xbean.server.spring.loader.SpringLoader

    /**
     * A factory method to allow derived classes to create alternative spring loaders
     */
    protected SpringLoader createSpringLoader() {
        return new SpringLoader();
    }
View Full Code Here

Examples of org.xbean.server.spring.loader.SpringLoader

        boolean loaded = false;
        try {
            FileSystemRepository repository = new FileSystemRepository(new File(getRootPath()));
            ClassLoaderXmlPreprocessor classLoaderXmlPreprocessor = new ClassLoaderXmlPreprocessor(repository);
            List xmlPreprocessors = Collections.singletonList(classLoaderXmlPreprocessor);
            SpringLoader springLoader = new SpringLoader();
            springLoader.setKernel(kernel);
            springLoader.setBaseDir(new File(getRootPath()));
            springLoader.setXmlPreprocessors(xmlPreprocessors);
            ServiceName configurationName = springLoader.load("xbean");
            kernel.startService(configurationName);
            services = kernel.getServices(EndpointSpec.class);
            if (services == null || services.size() == 0) {
                throw new DeploymentException("no endpoints specified");
            }
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.