Examples of ScopeContext


Examples of com.caucho.config.scope.ScopeContext

    if (xa == null || ! xa.isActive()) {
      throw new ContextNotActiveException(L.l("'{0}' cannot be created because @TransactionScoped requires an active transaction.",
                                              bean));
    }
   
    ScopeContext cxt = (ScopeContext) xa.getResource("caucho.xa.scope");

    if (cxt != null)
      return cxt.get(bean);
    else
      return null;
  }
View Full Code Here

Examples of com.caucho.config.scope.ScopeContext

    if (xa == null || ! xa.isActive()) {
      throw new ContextNotActiveException(L.l("'{0}' cannot be created because @TransactionScoped requires an active transaction.",
                                              bean));
    }
   
    ScopeContext cxt = (ScopeContext) xa.getResource("caucho.xa.scope");
   
    if (cxt == null) {
      cxt = new ScopeContext();
      xa.putResource("caucho.xa.scope", cxt);
      xa.registerSynchronization(cxt);
    }
   
    T result = cxt.get(bean);

    if (result != null || creationalContext == null)
      return (T) result;

    result = bean.create(creationalContext);

    String id = null;
    cxt.put(bean, id, result, creationalContext);

    return (T) result;
  }
View Full Code Here

Examples of com.dietsodasoftware.yail.oauth2.client.ScopeContext

    private void pollForAuthorizationToken() throws IOException, OauthAuthenticationException {
        final TokenCodeState tokenCodeState = tokenCodeStateResource.readTokenState(targetUuid);

        if(tokenCodeState != null){
            try{
                final ScopeContext scope = fromTokenCodeState(tokenCodeState);

                authenticationHandler.onAuthentication(scope);
                myFuture.cancel(false);
            } finally {
                // if the callback throws, I deem this unauthentiated
View Full Code Here

Examples of javax.faces.event.ScopeContext

                return;
            }
        }
        else if (event instanceof PreDestroyCustomScopeEvent)
        {
            ScopeContext scopeContext = ((PreDestroyCustomScopeEvent) event).getContext();
            scope = scopeContext.getScope();
        }
        else
        {
            // wrong event
            return;
View Full Code Here

Examples of javax.faces.event.ScopeContext

                return;
            }
        }
        else if (event instanceof PreDestroyCustomScopeEvent)
        {
            ScopeContext scopeContext = ((PreDestroyCustomScopeEvent) event).getContext();
            scope = scopeContext.getScope();
        }
        else
        {
            // wrong event
            return;
View Full Code Here

Examples of javax.faces.event.ScopeContext

                return;
            }
        }
        else if (event instanceof PreDestroyCustomScopeEvent)
        {
            ScopeContext scopeContext = ((PreDestroyCustomScopeEvent) event).getContext();
            scope = scopeContext.getScope();
        }
        else
        {
            // wrong event
            return;
View Full Code Here

Examples of javax.faces.event.ScopeContext

                return;
            }
        }
        else if (event instanceof PreDestroyCustomScopeEvent)
        {
            ScopeContext scopeContext = ((PreDestroyCustomScopeEvent) event).getContext();
            scope = scopeContext.getScope();
        }
        else
        {
            // wrong event
            return;
View Full Code Here

Examples of javax.faces.event.ScopeContext

                return;
            }
        }
        else if (event instanceof PreDestroyCustomScopeEvent)
        {
            ScopeContext scopeContext = ((PreDestroyCustomScopeEvent) event).getContext();
            scope = scopeContext.getScope();
        }
        else
        {
            // wrong event
            return;
View Full Code Here

Examples of javax.faces.event.ScopeContext

                return;
            }
        }
        else if (event instanceof PreDestroyCustomScopeEvent)
        {
            ScopeContext scopeContext = ((PreDestroyCustomScopeEvent) event).getContext();
            scope = scopeContext.getScope();
        }
        else
        {
            // wrong event
            return;
View Full Code Here

Examples of javax.faces.event.ScopeContext

                return;
            }
        }
        else if (event instanceof PreDestroyCustomScopeEvent)
        {
            ScopeContext scopeContext = ((PreDestroyCustomScopeEvent) event).getContext();
            scope = scopeContext.getScope();
        }
        else
        {
            // wrong event
            return;
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.