Examples of RiverMarshallerFactory


Examples of org.jboss.marshalling.river.RiverMarshallerFactory

    }

    @Override
    public synchronized void start(final StartContext context) {

        final RiverMarshallerFactory factory = new RiverMarshallerFactory();
        final MarshallingConfiguration configuration = new MarshallingConfiguration();
        configuration.setClassResolver(ModularClassResolver.getInstance(moduleLoader.getValue()));

        this.configuration = configuration;
        this.factory = factory;
View Full Code Here

Examples of org.jboss.marshalling.river.RiverMarshallerFactory

    /**
     * Simple constructor for running one test at a time from an IDE.
     */
    public SimpleMarshallerTests() {
        super(new MarshallerFactoryTestMarshallerProvider(new RiverMarshallerFactory(), 3),
              new MarshallerFactoryTestUnmarshallerProvider(new RiverMarshallerFactory(), 3),
              getOneTestMarshallingConfiguration());
    }
View Full Code Here

Examples of org.jboss.marshalling.river.RiverMarshallerFactory


    public synchronized void start(final StartContext startContext) throws StartException {

        try {
            final RiverMarshallerFactory factory = new RiverMarshallerFactory();
            final MarshallingConfiguration configuration = new MarshallingConfiguration();
            configuration.setClassResolver(ModularClassResolver.getInstance(serviceModuleLoaderInjectedValue.getValue()));
            this.configuration = configuration;
            this.factory = factory;
View Full Code Here

Examples of org.jboss.marshalling.river.RiverMarshallerFactory


    public synchronized void start(final StartContext startContext) throws StartException {

        try {
            final RiverMarshallerFactory factory = new RiverMarshallerFactory();
            final MarshallingConfiguration configuration = new MarshallingConfiguration();
            configuration.setClassResolver(ModularClassResolver.getInstance(serviceModuleLoaderInjectedValue.getValue()));
            this.configuration = configuration;
            this.factory = factory;
View Full Code Here

Examples of org.jboss.marshalling.river.RiverMarshallerFactory

                }
                return o;
            }
        });

        marshaller = new RiverMarshallerFactory().createMarshaller(config);
        marshaller.start(Marshalling.createByteOutput(dout));
        pickling = true;
    }
View Full Code Here

Examples of org.jboss.marshalling.river.RiverMarshallerFactory

        // prepare the unmarshaller to load the main stream, by using yet-fulfilled PickleResolver
        MarshallingConfiguration config = new MarshallingConfiguration();
        config.setClassResolver(new SimpleClassResolver(classLoader));
        //config.setSerializabilityChecker(new SerializabilityCheckerImpl());
        config.setObjectResolver(combine(evr, ownerResolver));
        final Unmarshaller eu = new RiverMarshallerFactory().createUnmarshaller(config);
        eu.start(Marshalling.createByteInput(din));

        // start rehydrating, and when done make the unmarshaller available
        return Futures.transform(evr.rehydrate(), new Function<PickleResolver, Unmarshaller>() {
            public Unmarshaller apply(PickleResolver input) {
View Full Code Here

Examples of org.jboss.marshalling.river.RiverMarshallerFactory

        BufferedInputStream es = openStreamAt(offset);
        try {
            MarshallingConfiguration config = new MarshallingConfiguration();
            config.setClassResolver(new SimpleClassResolver(classLoader));
            config.setObjectResolver(ownerResolver);
            Unmarshaller eu = new RiverMarshallerFactory().createUnmarshaller(config);
            try {
                eu.start(Marshalling.createByteInput(es));
                return (List<Pickle>)eu.readObject();
            } catch (ClassNotFoundException e) {
                throw new IOException("Failed to read the stream",e);
View Full Code Here

Examples of org.jboss.marshalling.river.RiverMarshallerFactory

    public FileTimerPersistence(final TransactionManager transactionManager, final TransactionSynchronizationRegistry transactionSynchronizationRegistry, final File baseDir, final boolean createIfNotExists, final ModuleLoader moduleLoader) {
        this.transactionManager = transactionManager;
        this.transactionSynchronizationRegistry = transactionSynchronizationRegistry;
        this.baseDir = baseDir;
        this.createIfNotExists = createIfNotExists;
        RiverMarshallerFactory factory = new RiverMarshallerFactory();
        MarshallingConfiguration configuration = new MarshallingConfiguration();
        configuration.setClassResolver(ModularClassResolver.getInstance(moduleLoader));

        this.configuration = configuration;
        this.factory = factory;
View Full Code Here

Examples of org.jboss.marshalling.river.RiverMarshallerFactory

    }

    @Override
    public synchronized void start(final StartContext context) {

        final RiverMarshallerFactory factory = new RiverMarshallerFactory();
        final MarshallingConfiguration configuration = new MarshallingConfiguration();
        configuration.setClassResolver(ModularClassResolver.getInstance(moduleLoader.getValue()));

        this.configuration = configuration;
        this.factory = factory;
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.