Package com.volantis.synergetics.osgi.framework

Examples of com.volantis.synergetics.osgi.framework.FrameworkManager


    public void start(BundleContext bundleContext) throws Exception {

        ServletContext servletContext = (ServletContext)
                getService(bundleContext, ServletContext.class);

        FrameworkManager manager = (FrameworkManager)
                getService(bundleContext, FrameworkManager.class);

        ServletRegistry registry = new ServletRegistry(servletContext);

        // Create the bridge.
        HttpBridgeService bridge = new HttpBridgeService(registry);

        // Register the bridge using the manager so that it can
        // be accessed from outside the OSGi framework.
        bridgeRegistration = manager.registerExportedBridgeService(
                HttpBridge.class,
                bridge, null);

        serviceRegistration = bundleContext.registerService(
                HttpService.class.getName(),
View Full Code Here

TOP

Related Classes of com.volantis.synergetics.osgi.framework.FrameworkManager

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.