Package org.axonframework.serializer.xml

Examples of org.axonframework.serializer.xml.XStreamSerializer


                "org/axonframework/commandhandling/distributed/jgroups/tcp_" + protocol + ".xml");

        connector = new JGroupsConnector(channel,
                                         "testing",
                                         new SimpleCommandBus(),
                                         new XStreamSerializer());
        dcb = new DistributedCommandBus(connector, new RoutingStrategy() {
            @Override
            public String getRoutingKey(CommandMessage<?> command) {
                return command.getPayload().toString();
            }
View Full Code Here


        StructuredAggregateRoot aggregateRoot = new StructuredAggregateRoot();
        aggregateRoot.invoke();
        assertEquals(2, aggregateRoot.getInvocations());
        assertEquals(2, aggregateRoot.getEntity().getInvocations());
        aggregateRoot.commitEvents();
        XStreamSerializer serializer = new XStreamSerializer();
        SerializedObject<byte[]> serialized = serializer.serialize(aggregateRoot, byte[].class);
        StructuredAggregateRoot deserializedAggregate = (StructuredAggregateRoot) serializer.deserialize(serialized);

        deserializedAggregate.invoke();
        assertEquals(3, deserializedAggregate.getInvocations());
        assertEquals(3, deserializedAggregate.getEntity().getInvocations());
    }
View Full Code Here

     *
     * @param connectionProvider The provider to obtain connections from
     * @param sqldef             The definition of SQL operations to execute
     */
    public JdbcSagaRepository(ConnectionProvider connectionProvider, SagaSqlSchema sqldef) {
        this(connectionProvider, sqldef, new XStreamSerializer());
    }
View Full Code Here

TOP

Related Classes of org.axonframework.serializer.xml.XStreamSerializer

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.