Examples of createCache()


Examples of org.jboss.ejb3.cache.Ejb3CacheFactory.createCache()

      }

      Cache cacheConfig = getAnnotation(Cache.class);
      CacheFactoryRegistry registry = getCacheFactoryRegistry();
      Ejb3CacheFactory factory = registry.getCacheFactory(cacheConfig.value());
      this.cache = factory.createCache();
      this.cache.initialize(this);
      this.cache.start();
   }

   @Override
View Full Code Here

Examples of org.jboss.ejb3.cache.Ejb3CacheFactory.createCache()

      }

      Cache cacheConfig = getAnnotation(Cache.class);
      CacheFactoryRegistry registry = getCacheFactoryRegistry();
      Ejb3CacheFactory factory = registry.getCacheFactory(cacheConfig.value());
      this.cache = factory.createCache();
      this.cache.initialize(this);
      this.cache.start();
   }

   @Override
View Full Code Here

Examples of org.jboss.ejb3.cache.Ejb3CacheFactory.createCache()

      }
     
      Cache cacheConfig = getAnnotation(Cache.class);
      CacheFactoryRegistry registry = getCacheFactoryRegistry();
      Ejb3CacheFactory factory = registry.getCacheFactory(cacheConfig.value());
      this.cache = factory.createCache();
      this.cache.initialize(this);
      this.cache.start();
   }
  
   @Override
View Full Code Here

Examples of org.jboss.ejb3.cache.Ejb3CacheFactory.createCache()

      }
     
      Cache cacheConfig = getAnnotation(Cache.class);
      CacheFactoryRegistry registry = getCacheFactoryRegistry();
      Ejb3CacheFactory factory = registry.getCacheFactory(cacheConfig.value());
      this.cache = factory.createCache();
      this.cache.initialize(this);
      this.cache.start();
   }
  
   @Override
View Full Code Here

Examples of org.jboss.ejb3.cache.Ejb3CacheFactory.createCache()

      }

      Cache cacheConfig = getAnnotation(Cache.class);
      CacheFactoryRegistry registry = getCacheFactoryRegistry();
      Ejb3CacheFactory factory = registry.getCacheFactory(cacheConfig.value());
      this.cache = factory.createCache();
      this.cache.initialize(this);
      this.cache.start();
   }

   @Override
View Full Code Here

Examples of org.jboss.ejb3.cache.Ejb3CacheFactory.createCache()

      }

      Cache cacheConfig = getAnnotation(Cache.class);
      CacheFactoryRegistry registry = getCacheFactoryRegistry();
      Ejb3CacheFactory factory = registry.getCacheFactory(cacheConfig.value());
      this.cache = factory.createCache();
      this.cache.initialize(this);
      this.cache.start();
   }

   @Override
View Full Code Here

Examples of org.jitterbit.integration.client.plugin.pipeline.cache.PipelinePluginManifestCacheFactory.createCache()

        Folder projectCacheDir = ProjectFolders.getCacheFolder(mp.getLocation());
        String manifestCacheDirName = PipelinePluginManifestCache.CACHE_ID;
        Folder manifestCacheDir = projectCacheDir.subFolder(manifestCacheDirName);
        PipelinePluginManifestCacheFactory factory = PipelinePluginManifestCacheFactory
                        .newFileBasedCacheFactory(manifestCacheDir);
        return factory.createCache();
    }


    // XXX: This is ugly. In version 3.0.0 we removed the requirement to provide a display name
    // when creating an AppliedPipelinePlugin, since the display name is just for the UI.
View Full Code Here

Examples of org.richfaces.cache.CacheManager.createCache()

    public void init() {
        // create cache instance
        facesContext = FacesContext.getCurrentInstance();
        CacheManager cacheManager = new CacheManager();
        Map<?, ?> initParameterMap = facesContext.getExternalContext().getInitParameterMap();
        cache = cacheManager.createCache(facesContext, "test-cache", initParameterMap);
        // insert value into cache and put it into cacheValue for later retrieval
        cache.put("x", "value-x", null);
        cacheValue = cache.get("x").toString();
    }
View Full Code Here

Examples of tests.jfun.yan.testmodel.ICacheFactory.createCache()

    final Component factory =
      mycache.factory(ICacheFactory.class);
    yan.registerComponent("target", factory);
    final ICacheFactory ifactory =
      (ICacheFactory)yan.getInstance("target");
    final tests.jfun.yan.testmodel.ICache icache = ifactory.createCache("tom", 10);
    assertEquals(MyCache.class, icache.getClass());
    assertEquals("tom", icache.getName());
    assertEquals(10, icache.getCapacity());
    try{
      yan.verify();
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.