Package org.jboss.gravia.runtime.embedded.spi

Examples of org.jboss.gravia.runtime.embedded.spi.BundleContextAdaptor$ServiceReferenceAdaptor


        Runtime runtime = RuntimeLocator.createRuntime(new TomcatRuntimeFactory(servletContext), propsProvider);
        runtime.init();

        // HttpService integration
        ModuleContext moduleContext = runtime.getModuleContext();
        BundleContext bundleContext = new BundleContextAdaptor(moduleContext);
        servletContext.setAttribute(BundleContext.class.getName(), bundleContext);

        // Register the {@link Repository}, {@link Resolver}, {@link Provisioner} services
        Repository repository = registerRepositoryService(runtime);
        Resolver resolver = registerResolverService(runtime);
View Full Code Here


        this.bundleActivator = activator;
    }

    @Override
    public void start(ModuleContext context) throws Exception {
        bundleActivator.start(new BundleContextAdaptor(context));
    }
View Full Code Here

    }

    @Override
    public void stop(ModuleContext context) throws Exception {
        if (bundleActivator != null) {
            bundleActivator.stop(new BundleContextAdaptor(context));
        }
    }
View Full Code Here

        ServletContext servletContext = event.getServletContext();
        Module module = runtime.getModule(servletContext.getClassLoader());

        // HttpService integration
        ModuleContext moduleContext = module.getModuleContext();
        BundleContext bundleContext = new BundleContextAdaptor(moduleContext);
        servletContext.setAttribute(BundleContext.class.getName(), bundleContext);
    }
View Full Code Here

        Runtime runtime = RuntimeLocator.createRuntime(new TomcatRuntimeFactory(servletContext), propsProvider);
        runtime.init();

        // HttpService integration
        ModuleContext moduleContext = runtime.getModuleContext();
        BundleContext bundleContext = new BundleContextAdaptor(moduleContext);
        servletContext.setAttribute(BundleContext.class.getName(), bundleContext);

        // Register the {@link Repository}, {@link Resolver}, {@link Provisioner} services
        Repository repository = registerRepositoryService(runtime);
        Resolver resolver = registerResolverService(runtime);
View Full Code Here

TOP

Related Classes of org.jboss.gravia.runtime.embedded.spi.BundleContextAdaptor$ServiceReferenceAdaptor

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.