Package org.infinispan.commons.marshall.jboss

Examples of org.infinispan.commons.marshall.jboss.DefaultContextClassResolver


public class CustomJBossMarshaller extends AbstractJBossMarshaller {

    public CustomJBossMarshaller() {
        super();
        baseCfg.setClassResolver(
                new DefaultContextClassResolver(this.getClass().getClassLoader()));

        baseCfg.setClassExternalizerFactory (new CustomClassExternalizerFactory());
        baseCfg.setClassTable(new CustomClassTable());
    }
View Full Code Here


public class ClassResolverConfigTest extends WithClassLoaderTest {

   @Override
   protected GlobalConfigurationBuilder createSecondGlobalCfgBuilder(ClassLoader cl) {
      GlobalConfigurationBuilder gcBuilder = super.createSecondGlobalCfgBuilder(cl);
      gcBuilder.serialization().classResolver(new DefaultContextClassResolver(cl));
      return gcBuilder;
   }
View Full Code Here

public class MigrationMarshaller extends AbstractJBossMarshaller {

   public MigrationMarshaller() {
      super();
      baseCfg.setClassResolver(
            new DefaultContextClassResolver(this.getClass().getClassLoader()));
   }
View Full Code Here

   @Override
   protected GlobalConfigurationBuilder createSecondGlobalCfgBuilder(ClassLoader cl) {
      GlobalConfigurationBuilder gcBuilder = super.createSecondGlobalCfgBuilder(cl);
      ClassLoader systemClassLoader = ClassResolverConfigTest.class.getClassLoader();
      gcBuilder.serialization().classResolver(new DefaultContextClassResolver(systemClassLoader));
      return gcBuilder;
   }
View Full Code Here

TOP

Related Classes of org.infinispan.commons.marshall.jboss.DefaultContextClassResolver

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.