Examples of ScopedKey


Examples of inject.ScopedKey

      Injected injected = getBean(Injected.class);
      assertNotNull(injected);
      assertNotNull(injected.injected);
      String value = injected.injected.getValue();
      assertEquals(1, scopingContext.getEntries().size());
      ScopedKey key = scopingContext.getEntries().keySet().iterator().next();
      assertEquals(Scope.REQUEST, key.getScope());
      Bean scoped = (Bean)scopingContext.getEntries().get(key).get();
      assertEquals(scoped.getValue(), value);
      assertSame(scoped, provider.bean);
    }
    finally {
View Full Code Here

Examples of inject.ScopedKey

      Injected injected = getBean(Injected.class);
      assertNotNull(injected);
      assertNotNull(injected.injected);
      String value = injected.injected.getValue();
      assertEquals(1, scopingContext.getEntries().size());
      ScopedKey key = scopingContext.getEntries().keySet().iterator().next();
      assertEquals(Scope.REQUEST, key.getScope());
      Bean scoped = (Bean)scopingContext.getEntries().get(key).get();
      assertEquals(scoped.getValue(), value);
      assertSame(scoped, BeanProvider.bean);
    }
    finally {
View Full Code Here

Examples of inject.ScopedKey

      Injected injected = getBean(Injected.class);
      assertNotNull(injected);
      assertNotNull(injected.scoped);
      String value = injected.scoped.getValue();
      assertEquals(1, scopingContext.getEntries().size());
      ScopedKey key = scopingContext.getEntries().keySet().iterator().next();
      assertEquals(Scope.REQUEST, key.getScope());
      Bean scoped = (Bean)scopingContext.getEntries().get(key).get();
      assertEquals(scoped.getValue(), value);
    }
    finally {
      endScoping();
View Full Code Here

Examples of inject.ScopedKey

      Injected injected = getBean(Injected.class);
      assertNotNull(injected);
      assertNotNull(injected.injected);
      String value = injected.injected.getValue();
      assertEquals(1, scopingContext.getEntries().size());
      ScopedKey key = scopingContext.getEntries().keySet().iterator().next();
      assertEquals(Scope.REQUEST, key.getScope());
      Bean scoped = (Bean)scopingContext.getEntries().get(key).get();
      assertEquals(scoped.getValue(), value);
    }
    finally {
      endScoping();
View Full Code Here

Examples of org.exoplatform.commons.scope.ScopedKey

        //
        cache.put(globalKey, value);
    }

    public Object cacheGet(Serializable key) {
        ScopedKey globalKey = ScopedKey.create(key);

        //
        Object value = cache.get(globalKey);

        //
View Full Code Here

Examples of org.exoplatform.commons.scope.ScopedKey

      cache.put(globalKey, value);
   }

   public Object cacheGet(Serializable key)
   {
      ScopedKey globalKey = ScopedKey.create(key);

      //
      Object value = cache.get(globalKey);

      //
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.