Examples of ImpalaOsgiApplicationContext


Examples of org.impalaframework.osgi.spring.ImpalaOsgiApplicationContext

   
    if (logger.isDebugEnabled()) {
      logger.debug("Called start for bundle context from bundle '" + bundleContext.getBundle() + "'. Activator class: " + this.getClass().getName());
    }
 
    ImpalaOsgiApplicationContext applicationContext = startContext(bundleContext, locations);
   
    if (applicationContext != null) {
     
      logger.info("Started Impala application context for bundle '" + bundleContext.getBundle() + "': " + applicationContext);
      initApplicationContext(bundleContext, applicationContext);
View Full Code Here

Examples of org.impalaframework.osgi.spring.ImpalaOsgiApplicationContext

   
    OsgiContextStarter contextStarter = newContextStarter();
    contextStarter.setBundleContext(bundleContext);
   
    ApplicationContext context = contextStarter.startContext(Arrays.asList(locations));
    ImpalaOsgiApplicationContext applicationContext = ObjectUtils.cast(context, ImpalaOsgiApplicationContext.class);
    return applicationContext;
  }
View Full Code Here

Examples of org.impalaframework.osgi.spring.ImpalaOsgiApplicationContext

       
        if (logger.isDebugEnabled()) {
            logger.debug("Called start for bundle context from bundle '" + bundleContext.getBundle() + "'. Activator class: " + this.getClass().getName());
        }
   
        ImpalaOsgiApplicationContext applicationContext = startContext(bundleContext, locations);
       
        if (applicationContext != null) {
           
            logger.info("Started Impala application context for bundle '" + bundleContext.getBundle() + "': " + applicationContext);
            initApplicationContext(bundleContext, applicationContext);
View Full Code Here

Examples of org.impalaframework.osgi.spring.ImpalaOsgiApplicationContext

       
        OsgiContextStarter contextStarter = newContextStarter();
        contextStarter.setBundleContext(bundleContext);
       
        ApplicationContext context = contextStarter.startContext(Arrays.asList(locations));
        ImpalaOsgiApplicationContext applicationContext = ObjectUtils.cast(context, ImpalaOsgiApplicationContext.class);
        return applicationContext;
    }
View Full Code Here

Examples of org.impalaframework.osgi.spring.ImpalaOsgiApplicationContext

       
        if (logger.isDebugEnabled()) {
            logger.debug("Called start for bundle context from bundle '" + bundleContext.getBundle() + "'. Activator class: " + this.getClass().getName());
        }
   
        ImpalaOsgiApplicationContext applicationContext = startContext(bundleContext, locations);
       
        if (applicationContext != null) {
           
            logger.info("Started Impala application context for bundle '" + bundleContext.getBundle() + "': " + applicationContext);
            initApplicationContext(bundleContext, applicationContext);
View Full Code Here

Examples of org.impalaframework.osgi.spring.ImpalaOsgiApplicationContext

       
        OsgiContextStarter contextStarter = newContextStarter();
        contextStarter.setBundleContext(bundleContext);
       
        ApplicationContext context = contextStarter.startContext(Arrays.asList(locations));
        ImpalaOsgiApplicationContext applicationContext = ObjectUtils.cast(context, ImpalaOsgiApplicationContext.class);
        return applicationContext;
    }
View Full Code Here

Examples of org.impalaframework.osgi.spring.ImpalaOsgiApplicationContext

            ApplicationContext parent,
            final ModuleDefinition moduleDefinition,
            ClassLoader classLoader) {

        Bundle bundle = findBundle(moduleDefinition);
        final ImpalaOsgiApplicationContext applicationContext = newApplicationContext(application, parent, moduleDefinition);
       
        final BundleContext bc = bundle.getBundleContext();
        applicationContext.setBundleContext(bc);
       
        final Resource[] springConfigResources = getSpringConfigResources("id", moduleDefinition, classLoader);
       
        applicationContext.setClassLoader(classLoader);
        applicationContext.setConfigResources(springConfigResources);

        applicationContext.setDisplayName(ModuleLoaderUtils.getDisplayName(moduleDefinition, applicationContext));

        DelegatedExecutionOsgiBundleApplicationContext dc = ObjectUtils.cast(applicationContext, DelegatedExecutionOsgiBundleApplicationContext.class);
        dc.startRefresh();
       
        return applicationContext;
View Full Code Here

Examples of org.impalaframework.osgi.spring.ImpalaOsgiApplicationContext

    ImpalaOsgiApplicationContext newApplicationContext(
            Application application, ApplicationContext parent, final ModuleDefinition moduleDefinition) {
       
        final ServiceRegistry serviceRegistry = application.getServiceRegistry();
       
        final ImpalaOsgiApplicationContext applicationContext = new ImpalaOsgiApplicationContext(parent) {

            @Override
            protected void registerBeanPostProcessors(ConfigurableListableBeanFactory beanFactory) {
                //need to add these here because don't get the chance after startRefresh() has been called
                beanFactory.addBeanPostProcessor(new ServiceRegistryPostProcessor(serviceRegistry, serviceProxyFactoryCreator));
View Full Code Here

Examples of org.impalaframework.osgi.spring.ImpalaOsgiApplicationContext

  public ConfigurableApplicationContext newApplicationContext(
      ApplicationContext parent, final ModuleDefinition moduleDefinition,
      ClassLoader classLoader) {

    Bundle bundle = findBundle(moduleDefinition);
    final ImpalaOsgiApplicationContext applicationContext = newApplicationContext(parent, moduleDefinition);
   
    final BundleContext bc = bundle.getBundleContext();
    applicationContext.setBundleContext(bc);
   
    final Resource[] springConfigResources = getSpringConfigResources(moduleDefinition, classLoader);
    final ClassLoader newClassLoader = newClassLoader(moduleDefinition, parent);
   
    applicationContext.setClassLoader(newClassLoader);
    applicationContext.setConfigResources(springConfigResources);

    applicationContext.setDisplayName(ModuleLoaderUtils.getDisplayName(moduleDefinition, applicationContext));

    DelegatedExecutionOsgiBundleApplicationContext dc = ObjectUtils.cast(applicationContext, DelegatedExecutionOsgiBundleApplicationContext.class);
    dc.startRefresh();
   
    return applicationContext;
View Full Code Here

Examples of org.impalaframework.osgi.spring.ImpalaOsgiApplicationContext

    return applicationContext;
  }

  ImpalaOsgiApplicationContext newApplicationContext(
      ApplicationContext parent, final ModuleDefinition moduleDefinition) {
    final ImpalaOsgiApplicationContext applicationContext = new ImpalaOsgiApplicationContext(parent) {

      @Override
      protected void registerBeanPostProcessors(ConfigurableListableBeanFactory beanFactory) {
        //need to add these here because don't get the chance after startRefresh() has been called
        beanFactory.addBeanPostProcessor(new ServiceRegistryPostProcessor(serviceRegistry));
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.