Examples of determineCacheInvalidationConfig()


Examples of org.jboss.metadata.ejb.jboss.JBossEntityBeanMetaData.determineCacheInvalidationConfig()

      // <cache-invalidation-config> block in jboss.xml
      JBossEntityBeanMetaData bean = (JBossEntityBeanMetaData) enterpriseBeans.get("TestEntity1");
      assertNotNull(bean);
      CacheInvalidationConfigMetaData cicmd = bean.getCacheInvalidationConfig();
      assertNull(cicmd);
      cicmd = bean.determineCacheInvalidationConfig();
      assertNotNull(cicmd);
      assertNull(cicmd.getInvalidationGroupName());
      assertNull(cicmd.getInvalidationManagerName());
      assertEquals("TestEntity1", cicmd.determineInvalidationGroupName());
      assertEquals(CacheInvalidationConfigMetaData.DEFAULT_INVALIDATION_MANAGER_NAME,
View Full Code Here

Examples of org.jboss.metadata.ejb.jboss.JBossEntityBeanMetaData.determineCacheInvalidationConfig()

      bean = (JBossEntityBeanMetaData) enterpriseBeans.get("TestEntity2");
      assertNotNull(bean);
      cicmd = bean.getCacheInvalidationConfig();
      assertNotNull(cicmd);
      CacheInvalidationConfigMetaData gotten = cicmd;
      cicmd = bean.determineCacheInvalidationConfig();
      assertEquals(gotten, cicmd);
      assertEquals("TestEntityGroup2", cicmd.getInvalidationGroupName());
      assertEquals("TestInvalidationManager", cicmd.getInvalidationManagerName());
      assertEquals("TestEntityGroup2", cicmd.determineInvalidationGroupName());
      assertEquals("TestInvalidationManager", cicmd.determineInvalidationManagerName());
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.