Java Code Examples for io.vlingo.common.serialization.JsonSerialization#deserialized()
The following examples show how to use
io.vlingo.common.serialization.JsonSerialization#deserialized() .
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: DefaultJsonMapper.java From vlingo-http with Mozilla Public License 2.0 | 5 votes |
@Override @SuppressWarnings("unchecked") public <T> T from(final String data, final Class<T> type) { if (type.getName().equals("java.lang.String")) { return (T) data; } return JsonSerialization.deserialized(data, type); }
Example 2
Source File: DoCommand3Adapter.java From vlingo-lattice with Mozilla Public License 2.0 | 4 votes |
@Override public DoCommand3 fromEntry(final TextEntry entry) { return JsonSerialization.deserialized(entry.entryData(), DoCommand3.class); }
Example 3
Source File: EntryAdapters.java From vlingo-examples with Mozilla Public License 2.0 | 4 votes |
@Override public ForumModeratorAssigned fromEntry(final TextEntry entry) { return JsonSerialization.deserialized(entry.entryData(), ForumModeratorAssigned.class); }
Example 4
Source File: UserStateAdapter.java From vlingo-examples with Mozilla Public License 2.0 | 4 votes |
@Override public UserState fromRawState(final TextState raw) { return JsonSerialization.deserialized(raw.data, raw.typed()); }
Example 5
Source File: Test3HappenedAdapter.java From vlingo-lattice with Mozilla Public License 2.0 | 4 votes |
@Override public Test3Happened fromEntry(final TextEntry entry) { return JsonSerialization.deserialized(entry.entryData(), Test3Happened.class); }
Example 6
Source File: JournalProjectionDispatcherTest.java From vlingo-lattice with Mozilla Public License 2.0 | 4 votes |
@Override public ThreeHappened fromEntry(final TextEntry entry) { return JsonSerialization.deserialized(entry.entryData(), ThreeHappened.class); }
Example 7
Source File: UserStateAdapter.java From vlingo-examples with Mozilla Public License 2.0 | 4 votes |
@Override public <ST> ST fromRawState(TextState raw, Class<ST> stateType) { return JsonSerialization.deserialized(raw.data, stateType); }
Example 8
Source File: StatefulEntityTest.java From vlingo-lattice with Mozilla Public License 2.0 | 4 votes |
@Override public Entity1State fromRawState(final State<String> raw) { return JsonSerialization.deserialized(raw.data, Entity1State.class); }
Example 9
Source File: Entity1.java From vlingo-lattice with Mozilla Public License 2.0 | 4 votes |
@Override public <ST> ST fromRawState(final TextState raw, final Class<ST> stateType) { return JsonSerialization.deserialized(raw.data, stateType); }
Example 10
Source File: Entity1.java From vlingo-lattice with Mozilla Public License 2.0 | 4 votes |
@Override public Entity1 fromRawState(final TextState raw) { return JsonSerialization.deserialized(raw.data, raw.typed()); }
Example 11
Source File: UserDataStateAdapter.java From vlingo-examples with Mozilla Public License 2.0 | 4 votes |
@Override public <ST> ST fromRawState(TextState raw, Class<ST> stateType) { return JsonSerialization.deserialized(raw.data, stateType); }
Example 12
Source File: TestExchangeAdapter1.java From vlingo-lattice with Mozilla Public License 2.0 | 4 votes |
@Override public LocalType1 fromExchange(final ExchangeMessage externalMessage) { final ExternalType1 external = JsonSerialization.deserialized(externalMessage.payload, ExternalType1.class); final LocalType1 local = mapper.externalToLocal(external); return local; }
Example 13
Source File: ProfileDataStateAdapter.java From vlingo-examples with Mozilla Public License 2.0 | 4 votes |
@Override public <ST> ST fromRawState(TextState raw, Class<ST> stateType) { return JsonSerialization.deserialized(raw.data, stateType); }
Example 14
Source File: SnapshotStateAdapter.java From vlingo-symbio with Mozilla Public License 2.0 | 4 votes |
@Override public <ST> ST fromRawState(final TextState raw, final Class<ST> stateType) { return JsonSerialization.deserialized(raw.data, stateType); }
Example 15
Source File: EntryAdapters.java From vlingo-examples with Mozilla Public License 2.0 | 4 votes |
@Override public DiscussionStarted fromEntry(final TextEntry entry) { return JsonSerialization.deserialized(entry.entryData(), DiscussionStarted.class); }
Example 16
Source File: EntryAdapters.java From vlingo-examples with Mozilla Public License 2.0 | 4 votes |
@Override public PostedToDiscussion fromEntry(final TextEntry entry) { return JsonSerialization.deserialized(entry.entryData(), PostedToDiscussion.class); }
Example 17
Source File: SnapshotStateAdapters.java From vlingo-examples with Mozilla Public License 2.0 | 4 votes |
@Override public State fromRawState(final TextState raw) { return JsonSerialization.deserialized(raw.data, raw.typed()); }
Example 18
Source File: InMemoryEventJournalActorTest.java From vlingo-symbio with Mozilla Public License 2.0 | 4 votes |
@Override public Test2Source fromEntry(final TextEntry entry) { return JsonSerialization.deserialized(entry.entryData(), Test2Source.class); }
Example 19
Source File: InMemoryEventJournalActorTest.java From vlingo-symbio with Mozilla Public License 2.0 | 4 votes |
@Override public Test1Source fromEntry(final TextEntry entry) { return JsonSerialization.deserialized(entry.entryData(), Test1Source.class); }
Example 20
Source File: EntryAdapters.java From vlingo-examples with Mozilla Public License 2.0 | 4 votes |
@Override public ForumStarted fromEntry(final TextEntry entry) { return JsonSerialization.deserialized(entry.entryData(), ForumStarted.class); }