Package org.jboss.marshalling

Examples of org.jboss.marshalling.MarshallingConfiguration


      }
    }
  }

  private Marshaller getMarshaller() throws IOException {
    MarshallingConfiguration configuration = new MarshallingConfiguration();
    configuration.setVersion( 3 );

    Marshaller marshaller = marshallerFactory.createMarshaller( configuration );
    return marshaller;
  }
View Full Code Here


    Marshaller marshaller = marshallerFactory.createMarshaller( configuration );
    return marshaller;
  }

  private Unmarshaller getUnmarshaller() throws IOException {
    MarshallingConfiguration configuration = new MarshallingConfiguration();
    return marshallerFactory.createUnmarshaller( configuration );
  }
View Full Code Here

      classTable = createMagicNumberClassTable();
      objectTable = createCustomObjectTable();
      externalizerFactoryAndObjectTable = createCustomExternalizerFactory(transport, objectTable);

      configuration = new MarshallingConfiguration();
      configuration.setCreator(new SunReflectiveCreator());
      configuration.setClassTable(classTable);
      configuration.setClassExternalizerFactory(externalizerFactoryAndObjectTable);
      configuration.setObjectTable(objectTable);
View Full Code Here

   private Unmarshaller unmarshaller;
  
   @BeforeTest
   public void setUp() throws Exception {
      factory = (MarshallerFactory) Thread.currentThread().getContextClassLoader().loadClass("org.jboss.marshalling.river.RiverMarshallerFactory").newInstance();
      MarshallingConfiguration configuration = new MarshallingConfiguration();
      configuration.setCreator(new SunReflectiveCreator());
      configuration.setClassResolver(new ContextClassResolver());
     
      marshaller = factory.createMarshaller(configuration);
      unmarshaller = factory.createUnmarshaller(configuration);
   }
View Full Code Here

   protected MarshallerFactory factory;

   public GenericJBossMarshaller() {
      factory = (MarshallerFactory) Util.getInstance(DEFAULT_MARSHALLER_FACTORY);

      configuration = new MarshallingConfiguration();
      configuration.setCreator(new SunReflectiveCreator());
      configuration.setExceptionListener(new DebuggingExceptionListener());
      // ContextClassResolver provides same functionality as MarshalledValueInputStream
      configuration.setClassResolver(new ContextClassResolver());
      configuration.setVersion(2);
View Full Code Here

      factory = Marshalling.getMarshallerFactory("river", Marshalling.class.getClassLoader());
      if (factory == null)
         throw new IllegalStateException(
            "River marshaller factory not found.  Verify that the JBoss Marshalling River jar archive is in the classpath.");

      configuration = new MarshallingConfiguration();
      configuration.setCreator(new SunReflectiveCreator());
      configuration.setExceptionListener(new DebuggingExceptionListener());
      // ContextClassResolver provides same functionality as MarshalledValueInputStream
      configuration.setClassResolver(new DefaultContextClassResolver(appClassLoader));
      configuration.setClassExternalizerFactory(new SerializeWithExtFactory());
View Full Code Here

      } catch (Exception e) {
         throw new CacheException("Unable to load JBoss Marshalling marshaller factory " + DEFAULT_MARSHALLER_FACTORY, e);
      }

      objectTable = createCustomObjectTable(cmdFactory, ispnMarshaller);
      configuration = new MarshallingConfiguration();
      configuration.setCreator(new SunReflectiveCreator());
      configuration.setObjectTable(objectTable);
      configuration.setExceptionListener(new DebuggingExceptionListener());
      // ContextClassResolver provides same functionality as MarshalledValueInputStream
      configuration.setClassResolver(new ContextClassResolver());
View Full Code Here

   protected MarshallerFactory factory;

   public GenericJBossMarshaller() {
      factory = (MarshallerFactory) Util.getInstance(DEFAULT_MARSHALLER_FACTORY);

      configuration = new MarshallingConfiguration();
      configuration.setCreator(new SunReflectiveCreator());
      configuration.setExceptionListener(new DebuggingExceptionListener());
      // ContextClassResolver provides same functionality as MarshalledValueInputStream
      configuration.setClassResolver(new ContextClassResolver());
      configuration.setVersion(2);
View Full Code Here

   protected MarshallerFactory factory;

   public GenericJBossMarshaller() {
      factory = (MarshallerFactory) Util.getInstance(DEFAULT_MARSHALLER_FACTORY);

      configuration = new MarshallingConfiguration();
      configuration.setCreator(new SunReflectiveCreator());
      configuration.setExceptionListener(new DebuggingExceptionListener());
      // ContextClassResolver provides same functionality as MarshalledValueInputStream
      configuration.setClassResolver(new ContextClassResolver());
      configuration.setVersion(2);
View Full Code Here

public class SimpleMarshalledValueFactoryTestCase {
    private final MarshallingContext context;
    private final SimpleMarshalledValueFactory factory;
   
    public SimpleMarshalledValueFactoryTestCase() {
        this.context = new MarshallingContext(Marshalling.getMarshallerFactory("river", Marshalling.class.getClassLoader()), new MarshallingConfiguration());
        this.factory = this.createFactory(this.context);
    }
View Full Code Here

TOP

Related Classes of org.jboss.marshalling.MarshallingConfiguration

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.