Examples of VersionAwareMarshaller


Examples of org.infinispan.marshall.VersionAwareMarshaller

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

Examples of org.infinispan.marshall.VersionAwareMarshaller

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

Examples of org.infinispan.marshall.VersionAwareMarshaller

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

Examples of org.infinispan.marshall.VersionAwareMarshaller

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

Examples of org.infinispan.marshall.VersionAwareMarshaller

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

Examples of org.infinispan.marshall.VersionAwareMarshaller

      Object comp;
      if (componentName.equals(GLOBAL_MARSHALLER))
         comp = new GlobalMarshaller((VersionAwareMarshaller)
               globalConfiguration.serialization().marshaller());
      else if (componentName.equals(CACHE_MARSHALLER))
         comp = new CacheMarshaller(new VersionAwareMarshaller());
      else
         throw new CacheException("Don't know how to handle type " + componentType);

      try {
         return componentType.cast(comp);
View Full Code Here

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", Thread.currentThread().getContextClassLoader());
         }
View Full Code Here

Examples of org.infinispan.marshall.VersionAwareMarshaller

   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

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", configuration.getClassLoader());
         }
View Full Code Here

Examples of org.infinispan.marshall.VersionAwareMarshaller

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