Examples of SingletonScope


Examples of com.caucho.config.scope.SingletonScope

        ic.rebind("java:comp/BeanManager", new WebBeansJndiProxy());
      } catch (Throwable e) {
        log.log(Level.FINEST, e.toString(), e);
      }

      _singletonScope = new SingletonScope();
      _applicationScope = new ApplicationContext();
     
      addContext(new RequestContext());
      addContext("com.caucho.server.webbeans.SessionScope");
      addContext("com.caucho.server.webbeans.ConversationContext");
View Full Code Here

Examples of com.caucho.config.scope.SingletonScope

        ic.rebind("java:comp/BeanManager", new WebBeansJndiProxy());
      } catch (Throwable e) {
        log.log(Level.FINEST, e.toString(), e);
      }

      _singletonScope = new SingletonScope();
      _applicationScope = new ApplicationContext();
     
      addContext(new RequestContext());
      addContext("com.caucho.server.webbeans.SessionScope");
      addContext("com.caucho.server.webbeans.ConversationContext");
View Full Code Here

Examples of jodd.petite.scope.SingletonScope

    log.info("app in web: " + Boolean.valueOf(isWebApplication));
    if (isWebApplication == false) {
      // make session scope to act as singleton scope
      // if this is not a web application (and http session is not available).
      petite.registerScope(SessionScope.class, new SingletonScope());
    }

    // load parameters from properties files
    petite.defineParameters(appProps);
View Full Code Here

Examples of jodd.petite.scope.SingletonScope

  @Test
  public void testScopeAccept() {
    final PetiteContainer pc = new PetiteContainer();

    SingletonScope singletonScope = pc.resolveScope(SingletonScope.class);
    ProtoScope protoScope = pc.resolveScope(ProtoScope.class);
    SessionScope sessionScope = pc.resolveScope(SessionScope.class);
    RequestScope requestScope = pc.resolveScope(RequestScope.class);

    assertTrue(singletonScope.accept(singletonScope));
    assertFalse(singletonScope.accept(protoScope));
    assertFalse(singletonScope.accept(sessionScope));
    assertFalse(singletonScope.accept(requestScope));

    assertTrue(protoScope.accept(singletonScope));
    assertTrue(protoScope.accept(protoScope));
    assertTrue(protoScope.accept(sessionScope));
    assertTrue(protoScope.accept(requestScope));
View Full Code Here

Examples of org.eclipse.xtext.scoping.impl.SingletonScope

 
  public IScope scope_Id(TaskDeclaration owner, EReference ref) {
    String crossrefName = linkingHelper.getCrossRefNodeAsString(node, true);
    if ("options".equals(crossrefName)) {
      IEObjectDescription description = EObjectDescription.create("options", getOptions());
      return new SingletonScope(description, IScope.NULLSCOPE);
    }
    else {
      // Let superclass handle it
      return null;
    }
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.