Examples of BundleContextAdaptor


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

        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

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

        this.bundleActivator = activator;
    }

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

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

    }

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

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

        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

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

        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
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.