Examples of startContext()


Examples of org.apache.webbeans.spi.ContextsService.startContext()

    public static void initSingletonContext(Object parameter)
    {
        try
        {
            ContextsService contextService = getContextsService();
            contextService.startContext(Singleton.class, parameter);
        }
        catch (Exception e)
        {
            logger.error(e);           
        }
View Full Code Here

Examples of org.apache.webbeans.spi.ContextsService.startContext()

    public static void initConversationContext(Object context)
    {
        try
        {
            ContextsService contextService = getContextsService();
            contextService.startContext(ConversationScoped.class, context);
        }
        catch (Exception e)
        {
            logger.error(e);           
        }
View Full Code Here

Examples of org.auraframework.service.ContextService.startContext()

    public void testAddCacheBusterToNull() throws Exception {
        ContextService contextService = Aura.getContextService();
        if (contextService.isEstablished()) {
            contextService.endContext();
        }
        contextService.startContext(Mode.DEV, Format.HTML, Authentication.AUTHENTICATED);
        assertNull(AuraBaseServlet.addCacheBuster(null));
    }

    /**
     * Empty URL string should still have the buster returned.
View Full Code Here

Examples of org.impalaframework.osgi.startup.OsgiContextStarter.startContext()

  ImpalaOsgiApplicationContext startContext(BundleContext bundleContext, String[] locations) {
   
    OsgiContextStarter contextStarter = newContextStarter();
    contextStarter.setBundleContext(bundleContext);
   
    ApplicationContext context = contextStarter.startContext(Arrays.asList(locations));
    ImpalaOsgiApplicationContext applicationContext = ObjectUtils.cast(context, ImpalaOsgiApplicationContext.class);
    return applicationContext;
  }

  OsgiContextStarter newContextStarter() {
View Full Code Here

Examples of org.impalaframework.osgi.startup.OsgiContextStarter.startContext()

    ImpalaOsgiApplicationContext startContext(BundleContext bundleContext, String[] locations) {
       
        OsgiContextStarter contextStarter = newContextStarter();
        contextStarter.setBundleContext(bundleContext);
       
        ApplicationContext context = contextStarter.startContext(Arrays.asList(locations));
        ImpalaOsgiApplicationContext applicationContext = ObjectUtils.cast(context, ImpalaOsgiApplicationContext.class);
        return applicationContext;
    }

    OsgiContextStarter newContextStarter() {
View Full Code Here

Examples of org.impalaframework.osgi.startup.OsgiContextStarter.startContext()

    ImpalaOsgiApplicationContext startContext(BundleContext bundleContext, String[] locations) {
       
        OsgiContextStarter contextStarter = newContextStarter();
        contextStarter.setBundleContext(bundleContext);
       
        ApplicationContext context = contextStarter.startContext(Arrays.asList(locations));
        ImpalaOsgiApplicationContext applicationContext = ObjectUtils.cast(context, ImpalaOsgiApplicationContext.class);
        return applicationContext;
    }

    OsgiContextStarter newContextStarter() {
View Full Code Here

Examples of org.impalaframework.startup.ContextStarter.startContext()

    protected void init() {
        List<String> locations = getBootstrapContextLocations();

        ContextStarter contextStarter = getContextStarter();
        ApplicationContext applicationContext = contextStarter.startContext(locations);

        this.facade = ObjectUtils.cast(applicationContext.getBean("moduleManagementFacade"),
                ModuleManagementFacade.class);
        this.moduleStateHolder = facade.getModuleStateHolder();
    }
View Full Code Here

Examples of org.impalaframework.startup.ContextStarter.startContext()

  protected void init() {
    List<String> locations = getBootstrapContextLocations();

    ContextStarter contextStarter = getContextStarter();
    ApplicationContext applicationContext = contextStarter.startContext(locations);

    facade = ObjectUtils.cast(applicationContext.getBean("moduleManagementFacade"),
        ModuleManagementFacade.class);
    moduleStateHolder = facade.getModuleStateHolder();
  }
View Full Code Here

Examples of org.impalaframework.startup.ContextStarter.startContext()

  protected void init() {
    List<String> locations = getBootstrapContextLocations();

    ContextStarter contextStarter = getContextStarter();
    ApplicationContext applicationContext = contextStarter.startContext(locations);

    factory = ObjectUtils.cast(applicationContext.getBean("moduleManagementFactory"),
        ModuleManagementFactory.class);
    moduleStateHolder = factory.getModuleStateHolder();
  }
View Full Code Here

Examples of org.impalaframework.startup.ContextStarter.startContext()

  protected void init() {
    List<String> locations = getBootstrapContextLocations();

    ContextStarter contextStarter = getContextStarter();
    ApplicationContext applicationContext = contextStarter.startContext(locations);

    facade = ObjectUtils.cast(applicationContext.getBean("moduleManagementFacade"),
        ModuleManagementFacade.class);
    moduleStateHolder = facade.getModuleStateHolder();
  }
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.