Package org.infinispan.marshall

Examples of org.infinispan.marshall.VersionAwareMarshaller


   @SuppressWarnings("unchecked")
   public <T> T construct(Class<T> componentType) {
      if (componentType.isInterface()) {
         Class componentImpl;
         if (componentType.equals(StreamingMarshaller.class)) {
            VersionAwareMarshaller versionAwareMarshaller = getInstance(VersionAwareMarshaller.class);
            return componentType.cast(versionAwareMarshaller);
         } else {
            // add an "Impl" to the end of the class name and try again
            componentImpl = loadClass(componentType.getName() + "Impl");
         }
View Full Code Here


   @Override
   public <T> T construct(Class<T> componentType) {
      if (componentType.isInterface()) {
         Class componentImpl;
         if (componentType.equals(StreamingMarshaller.class)) {
            VersionAwareMarshaller versionAwareMarshaller = Util.getInstance(VersionAwareMarshaller.class);
            return componentType.cast(versionAwareMarshaller);
         } else if (componentType.equals(InvocationContextContainer.class)) {
            componentImpl = InvocationContextContainerImpl.class;
         } else {
            // add an "Impl" to the end of the class name and try again
View Full Code Here

   public <T> T construct(Class<T> componentType) {
      try {
         if (componentType.isInterface()) {
            Class componentImpl;
            if (componentType.equals(Marshaller.class)) {
               VersionAwareMarshaller versionAwareMarshaller = Util.getInstance(VersionAwareMarshaller.class);
               return componentType.cast(versionAwareMarshaller);
            } else if (componentType.equals(InvocationContextContainer.class)) {
               componentImpl = InvocationContextContainerImpl.class;
            } else {
               // add an "Impl" to the end of the class name and try again
View Full Code Here

      if (isVersionAwareMarshaller) {
         if (componentName.equals(GLOBAL_MARSHALLER))
            comp = new GlobalMarshaller((VersionAwareMarshaller) configMarshaller);
         else if (componentName.equals(CACHE_MARSHALLER))
            comp = new CacheMarshaller(new VersionAwareMarshaller());
         else
            throw new CacheException("Don't know how to handle type " + componentType);
      } else {
         comp = configMarshaller;
      }
View Full Code Here

               return componentType.cast(new ClusteringDependentLogic.AllNodesLogic());
            } else {
               return componentType.cast(new ClusteringDependentLogic.DistributionLogic());
            }
         } else if (componentType.equals(StreamingMarshaller.class)) {
            VersionAwareMarshaller versionAwareMarshaller = getInstance(VersionAwareMarshaller.class);
            return componentType.cast(versionAwareMarshaller);
         } else if (componentType.equals(EntryFactory.class)) {
            return componentType.cast(getInstance(EntryFactoryImpl.class));
         } else if(componentType.equals(InvocationContextContainer.class)) {
            componentImpl = configuration.isTransactionalCache() ? TransactionalInvocationContextContainer.class
View Full Code Here

   @SuppressWarnings("unchecked")
   public <T> T construct(Class<T> componentType) {
      if (componentType.isInterface()) {
         Class componentImpl;
         if (componentType.equals(StreamingMarshaller.class)) {
            VersionAwareMarshaller versionAwareMarshaller = getInstance(VersionAwareMarshaller.class);
            return componentType.cast(versionAwareMarshaller);
         } else {
            // add an "Impl" to the end of the class name and try again
            componentImpl = loadClass(componentType.getName() + "Impl");
         }
View Full Code Here

*/
@Test(groups = "unit", enabled = true, testName = "loaders.bdbje.BdbjeCacheStoreIntegrationVamTest")
public class BdbjeCacheStoreIntegrationVamTest extends BdbjeCacheStoreIntegrationTest {
   @Override
   protected Marshaller getMarshaller() {
      VersionAwareMarshaller marshaller = new VersionAwareMarshaller();
      marshaller.inject(Thread.currentThread().getContextClassLoader(), new RemoteCommandFactory());
      marshaller.start();
      return marshaller;
   }
View Full Code Here

*/
@Test(groups = "functional", testName = "loaders.jdbc.stringbased.JdbcStringBasedCacheStoreVamTest")
public class JdbcStringBasedCacheStoreVamTest extends JdbcStringBasedCacheStoreTest {
   @Override
   protected Marshaller getMarshaller() {
      VersionAwareMarshaller marshaller = new VersionAwareMarshaller();
      marshaller.inject(Thread.currentThread().getContextClassLoader(), new RemoteCommandFactory());
      marshaller.start();
      return marshaller;
   }
View Full Code Here

*/
@Test(groups = "functional", testName = "loaders.jdbc.stringbased.JdbcStringBasedCacheStoreVamTest2")
public class JdbcStringBasedCacheStoreVamTest2 extends JdbcStringBasedCacheStoreTest2 {
   @Override
   protected Marshaller getMarshaller() {
      VersionAwareMarshaller marshaller = new VersionAwareMarshaller();
      marshaller.inject(Thread.currentThread().getContextClassLoader(), new RemoteCommandFactory());
      marshaller.start();
      return marshaller;
   }
View Full Code Here

*/
@Test(groups = "unit", testName = "loaders.jdbm.JdbmCacheStoreVamTest")
public class JdbmCacheStoreVamTest extends JdbmCacheStoreTest {
   @Override
   protected Marshaller getMarshaller() {
      VersionAwareMarshaller marshaller = new VersionAwareMarshaller();
      marshaller.inject(Thread.currentThread().getContextClassLoader(), new RemoteCommandFactory());
      marshaller.start();
      return marshaller;
   }
View Full Code Here

TOP

Related Classes of org.infinispan.marshall.VersionAwareMarshaller

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.