Package org.infinispan.marshall.jboss

Examples of org.infinispan.marshall.jboss.ExternalizerTable


      FileReadLockKey key = new FileReadLockKey("myIndex", "index.lock");
      verifyExternalizerForType(key, FileReadLockKey.Externalizer.class);
   }

   private void verifyExternalizerForType(Object keySampleType, Class expectedExcternalizerClass) throws IOException {
      ExternalizerTable externalizerTable = TestingUtil.extractExtTable(cacheManager);

      Writer objectWriter = externalizerTable.getObjectWriter(keySampleType);

      AssertJUnit.assertEquals("Registered Externalizers should be wrapped by a ForeignExternalizerAdapter", objectWriter.getClass().toString(),
                               "class org.infinispan.marshall.jboss.ExternalizerTable$ForeignExternalizerAdapter");

      AssertJUnit.assertEquals("Type of delegate used by the adapter doesn't match expected: " + expectedExcternalizerClass.getClass(),
View Full Code Here


      if (componentType.equals(InboundInvocationHandler.class))
         return (T) new InboundInvocationHandlerImpl();
      else if (componentType.equals(RemoteCommandsFactory.class))
         return (T) new RemoteCommandsFactory();
      else if (componentType.equals(ExternalizerTable.class))
         return (T) new ExternalizerTable();
      else if (componentType.equals(LocalTopologyManager.class))
         return (T) new LocalTopologyManagerImpl();
      else if (componentType.equals(ClusterTopologyManager.class))
         return (T) new ClusterTopologyManagerImpl();
      else if (componentType.equals(RebalancePolicy.class))
View Full Code Here

      if (componentType.equals(InboundInvocationHandler.class))
         return (T) new InboundInvocationHandlerImpl();
      else if (componentType.equals(RemoteCommandsFactory.class))
         return (T) new RemoteCommandsFactory();
      else if (componentType.equals(ExternalizerTable.class))
         return (T) new ExternalizerTable();
      else if (componentType.equals(LocalTopologyManager.class))
         return (T) new LocalTopologyManagerImpl();
      else if (componentType.equals(ClusterTopologyManager.class))
         return (T) new ClusterTopologyManagerImpl();
      else if (componentType.equals(RebalancePolicy.class))
View Full Code Here

      else if (componentType.equals(TransactionFactory.class))
         return (T) new TransactionFactory();
      else if (componentType.equals(L1Manager.class))
         return (T) new L1ManagerImpl();
      else if (componentType.equals(ExternalizerTable.class))
         return (T) new ExternalizerTable();

      throw new ConfigurationException("Don't know how to create a " + componentType.getName());
   }
View Full Code Here

      else if (componentType.equals(TransactionFactory.class))
         return (T) new TransactionFactory();
      else if (componentType.equals(L1Manager.class))
         return (T) new L1ManagerImpl();
      else if (componentType.equals(ExternalizerTable.class))
         return (T) new ExternalizerTable();

      throw new ConfigurationException("Don't know how to create a " + componentType.getName());
   }
View Full Code Here

      if (componentType.equals(InboundInvocationHandler.class))
         return (T) new InboundInvocationHandlerImpl();
      else if (componentType.equals(RemoteCommandsFactory.class))
         return (T) new RemoteCommandsFactory();
      else if (componentType.equals(ExternalizerTable.class))
         return (T) new ExternalizerTable();
      else if (componentType.equals(LocalTopologyManager.class))
         return (T) new LocalTopologyManagerImpl();
      else if (componentType.equals(ClusterTopologyManager.class))
         return (T) new ClusterTopologyManagerImpl();
      else if (componentType.equals(RebalancePolicy.class))
View Full Code Here

      if (componentType.equals(InboundInvocationHandler.class))
         return (T) new InboundInvocationHandlerImpl();
      else if (componentType.equals(RemoteCommandsFactory.class))
         return (T) new RemoteCommandsFactory();
      else if (componentType.equals(ExternalizerTable.class))
         return (T) new ExternalizerTable();
      else if (componentType.equals(LocalTopologyManager.class))
         return (T) new LocalTopologyManagerImpl();
      else if (componentType.equals(ClusterTopologyManager.class))
         return (T) new ClusterTopologyManagerImpl();
      else if (componentType.equals(RebalancePolicy.class))
View Full Code Here

      FileReadLockKey key = new FileReadLockKey("myIndex", "index.lock");
      verifyExternalizerForType(key, FileReadLockKey.Externalizer.class);
   }

   private void verifyExternalizerForType(Object keySampleType, Class expectedExcternalizerClass) throws IOException {
      ExternalizerTable externalizerTable = TestingUtil.extractExtTable(cacheManager);

      Writer objectWriter = externalizerTable.getObjectWriter(keySampleType);

      Assert.assertEquals(objectWriter.getClass().toString(),
            "class org.infinispan.marshall.jboss.ExternalizerTable$ForeignExternalizerAdapter",
            "Registered Externalizers should be wrapped by a ForeignExternalizerAdapter");
View Full Code Here

      FileReadLockKey key = new FileReadLockKey("myIndex", "index.lock");
      verifyExternalizerForType(key, FileReadLockKey.Externalizer.class);
   }

   private void verifyExternalizerForType(Object keySampleType, Class expectedExcternalizerClass) throws IOException {
      ExternalizerTable externalizerTable = TestingUtil.extractExtTable(cacheManager);

      Writer objectWriter = externalizerTable.getObjectWriter(keySampleType);

      AssertJUnit.assertEquals("Registered Externalizers should be wrapped by a ForeignExternalizerAdapter",
            objectWriter.getClass().toString(),
            "class org.infinispan.marshall.jboss.ExternalizerTable$ForeignExternalizerAdapter");
View Full Code Here

TOP

Related Classes of org.infinispan.marshall.jboss.ExternalizerTable

Copyright © 2018 www.massapicom. 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.