Package org.springframework.osgi.context.support

Examples of org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext


       
        // Check if we found an ApplicationContext. If not create one
        if(applicationContextRefs == null || applicationContextRefs.length != 1) {
           
            // Create a new context which just serve as registry later
            AbstractDelegatedExecutionApplicationContext context = new AbstractDelegatedExecutionApplicationContext() {
            };
            context.setBundleContext(bundleContext);
            context.setPublishContextAsService(true);
            context.refresh();
            return context.getBeanFactory();
        } else {
            return ((ApplicationContext) bundleContext.getService(applicationContextRefs[0])).getAutowireCapableBeanFactory();
        }
      
      
View Full Code Here

TOP

Related Classes of org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext

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.