Package org.apache.webbeans.spi

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


    public void initRequestContext(Object request)
    {
        try
        {
            ContextsService contextService = getContextsService();
            contextService.startContext(RequestScoped.class, request);
        }
        catch (Exception e)
        {
            logger.log(Level.SEVERE, e.getMessage(), e);
        }
View Full Code Here


    public void initSessionContext(Object session)
    {
        try
        {
            ContextsService contextService = getContextsService();
            contextService.startContext(SessionScoped.class, session);
        }
        catch (Exception e)
        {
            logger.log(Level.SEVERE, e.getMessage(), e);
        }
View Full Code Here

    public void initApplicationContext(Object parameter)
    {
        try
        {
            ContextsService contextService = getContextsService();
            contextService.startContext(ApplicationScoped.class, parameter);
        }
        catch (Exception e)
        {
            logger.log(Level.SEVERE, e.getMessage(), e);
        }
View Full Code Here

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

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

    public void afterDeployment(@Observes AfterDeploy event)
    {
        ContextsService service = lifecycle.get().getContextService();

        //service.startContext(ApplicationScoped.class, null);
        service.startContext(ApplicationScoped.class, null);
    }

    public void beforeUndeployment(@Observes BeforeUnDeploy event)
    {
        ContextsService service = lifecycle.get().getContextService();
View Full Code Here

    public void beforeMethod(@Observes Before event)
    {
        ContextsService service = lifecycle.get().getContextService();

        service.startContext(RequestScoped.class, null);
        service.startContext(SessionScoped.class, null);
        service.startContext(ConversationScoped.class, null);
    }

    public void afterMethod(@Observes After event)
View Full Code Here

    public void beforeMethod(@Observes Before event)
    {
        ContextsService service = lifecycle.get().getContextService();

        service.startContext(RequestScoped.class, null);
        service.startContext(SessionScoped.class, null);
        service.startContext(ConversationScoped.class, null);
    }

    public void afterMethod(@Observes After event)
    {
View Full Code Here

    {
        ContextsService service = lifecycle.get().getContextService();

        service.startContext(RequestScoped.class, null);
        service.startContext(SessionScoped.class, null);
        service.startContext(ConversationScoped.class, null);
    }

    public void afterMethod(@Observes After event)
    {
        ContainerLifecycle lc = lifecycle.get();
View Full Code Here

   public void createSession(@Observes AfterDeploy event)
   {
      ContextsService service = this.lifecycle.get().getContextService();

      //service.startContext(ApplicationScoped.class, null);
      service.startContext(SessionScoped.class, null);
   }
  
   public void createRequest(@Observes Before event)
   {
      ContextsService service = this.lifecycle.get().getContextService();
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.