Java Code Examples for io.vlingo.common.serialization.JsonSerialization#serialized()
The following examples show how to use
io.vlingo.common.serialization.JsonSerialization#serialized() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: EntryAdapters.java From vlingo-examples with Mozilla Public License 2.0 | 4 votes |
@Override public TextEntry toEntry(final ForumDescribed source, final String id, final Metadata metadata) { final String serialization = JsonSerialization.serialized(source); return new TextEntry(id, ForumDescribed.class, 1, serialization, metadata); }
Example 2
Source File: EntryAdapters.java From vlingo-lattice with Mozilla Public License 2.0 | 4 votes |
@Override public TextEntry toEntry(final DoStepTwo source, final int version, final String id, final Metadata metadata) { final String serialization = JsonSerialization.serialized(source); return new TextEntry(id, DoStepTwo.class, 1, serialization, version, metadata); }
Example 3
Source File: UserIdStateAdapter.java From vlingo-examples with Mozilla Public License 2.0 | 4 votes |
@Override public State.TextState toRawState(String id, UserId state, int stateVersion, Metadata metadata) { final String serialization = JsonSerialization.serialized(state); return new State.TextState(id, CartUserSummaryData.class, typeVersion(), serialization, stateVersion, metadata); }
Example 4
Source File: EntryAdapters.java From vlingo-lattice with Mozilla Public License 2.0 | 4 votes |
@Override public TextEntry toEntry(final DoStepFour source, final int version, final String id, final Metadata metadata) { final String serialization = JsonSerialization.serialized(source); return new TextEntry(id, DoStepFour.class, 1, serialization, version, metadata); }
Example 5
Source File: EntryAdapters.java From vlingo-examples with Mozilla Public License 2.0 | 4 votes |
@Override public TextEntry toEntry(final ForumStarted source, final String id, final Metadata metadata) { final String serialization = JsonSerialization.serialized(source); return new TextEntry(id, ForumStarted.class, 1, serialization, metadata); }
Example 6
Source File: EntryAdapters.java From vlingo-examples with Mozilla Public License 2.0 | 4 votes |
@Override public TextEntry toEntry(final ForumDescribed source, final int version, String id, final Metadata metadata) { final String serialization = JsonSerialization.serialized(source); return new TextEntry(id, ForumDescribed.class, 1, serialization, version, metadata); }
Example 7
Source File: EntryAdapters.java From vlingo-examples with Mozilla Public License 2.0 | 4 votes |
@Override public TextEntry toEntry(final ForumTopicChanged source, final String id, final Metadata metadata) { final String serialization = JsonSerialization.serialized(source); return new TextEntry(id, ForumTopicChanged.class, 1, serialization, metadata); }
Example 8
Source File: JournalProjectionDispatcherTest.java From vlingo-lattice with Mozilla Public License 2.0 | 4 votes |
@Override public TextEntry toEntry(final TwoHappened source, final int version, final String id, final Metadata metadata) { final String serialization = JsonSerialization.serialized(source); return new TextEntry(id, TwoHappened.class, 1, serialization, version, metadata); }
Example 9
Source File: EntryAdapters.java From vlingo-examples with Mozilla Public License 2.0 | 4 votes |
@Override public TextEntry toEntry(final ForumTopicChanged source, final int version, String id, final Metadata metadata) { final String serialization = JsonSerialization.serialized(source); return new TextEntry(id, ForumTopicChanged.class, 1, serialization, version, metadata); }
Example 10
Source File: EntryAdapters.java From vlingo-examples with Mozilla Public License 2.0 | 4 votes |
@Override public TextEntry toEntry(final DiscussionReopened source, final String id, final Metadata metadata) { final String serialization = JsonSerialization.serialized(source); return new TextEntry(id, DiscussionReopened.class, 1, serialization, metadata); }
Example 11
Source File: EventAdapter.java From vlingo-examples with Mozilla Public License 2.0 | 4 votes |
@Override public TextEntry toEntry(T object, int version, String id, Metadata metadata) { final String serialization = JsonSerialization.serialized(object); return new TextEntry(id, type, eventVersion, serialization, version, Metadata.nullMetadata()); }
Example 12
Source File: JournalProjectionDispatcherTest.java From vlingo-lattice with Mozilla Public License 2.0 | 4 votes |
@Override public TextEntry toEntry(TwoHappened source, String id, Metadata metadata) { final String serialization = JsonSerialization.serialized(source); return new TextEntry(id, TwoHappened.class, 1, serialization, metadata); }
Example 13
Source File: DoCommand2Adapter.java From vlingo-lattice with Mozilla Public License 2.0 | 4 votes |
@Override public TextEntry toEntry(final DoCommand2 source, final String id, final Metadata metadata) { final String serialization = JsonSerialization.serialized(source); return new TextEntry(id, DoCommand2.class, 1, serialization, metadata); }
Example 14
Source File: EntryAdapters.java From vlingo-examples with Mozilla Public License 2.0 | 4 votes |
@Override public TextEntry toEntry(final PostedToDiscussion source, final String id, final Metadata metadata) { final String serialization = JsonSerialization.serialized(source); return new TextEntry(id, PostedToDiscussion.class, 1, serialization, metadata); }
Example 15
Source File: DoCommand1Adapter.java From vlingo-lattice with Mozilla Public License 2.0 | 4 votes |
@Override public TextEntry toEntry(final DoCommand1 source, final String id, final Metadata metadata) { final String serialization = JsonSerialization.serialized(source); return new TextEntry(id, DoCommand1.class, 1, serialization, metadata); }
Example 16
Source File: EntryAdapters.java From vlingo-examples with Mozilla Public License 2.0 | 4 votes |
@Override public TextEntry toEntry(final DiscussionReopened source, final int version, String id, final Metadata metadata) { final String serialization = JsonSerialization.serialized(source); return new TextEntry(id, DiscussionReopened.class, 1, serialization, version, metadata); }
Example 17
Source File: InMemoryEventJournalActorTest.java From vlingo-symbio with Mozilla Public License 2.0 | 4 votes |
@Override public TextEntry toEntry(Test1Source source, Metadata metadata) { final String serialization = JsonSerialization.serialized(source); return new TextEntry(Test1Source.class, 1, serialization, metadata); }
Example 18
Source File: EntryAdapters.java From vlingo-lattice with Mozilla Public License 2.0 | 4 votes |
@Override public TextEntry toEntry(final DoStepFour source, final String id, final Metadata metadata) { final String serialization = JsonSerialization.serialized(source); return new TextEntry(id, DoStepFour.class, 1, serialization, metadata); }
Example 19
Source File: DefaultTextEntryAdapter.java From vlingo-symbio with Mozilla Public License 2.0 | 4 votes |
@Override public Entry toEntry(final Source source, final int version, final String id, final Metadata metadata) { final String serialization = JsonSerialization.serialized(source); return new TextEntry(id, source.getClass(), 1, serialization, version, metadata); }
Example 20
Source File: UserDataStateAdapter.java From vlingo-examples with Mozilla Public License 2.0 | 4 votes |
@Override public TextState toRawState(String id, UserData state, int stateVersion, Metadata metadata) { final String serialization = JsonSerialization.serialized(state); return new TextState(id, UserData.class, typeVersion(), serialization, stateVersion, metadata); }