Merge pull request #27762 from akka/wip-24717-doc-ser-patriknw

doc: Cleanup serialization.md, #24717
This commit is contained in:
Patrik Nordwall 2019-09-26 12:01:22 +02:00 committed by GitHub
commit d4d44a4813
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 156 additions and 82 deletions

View file

@ -6,6 +6,7 @@ package jdocs.serialization;
import java.io.UnsupportedEncodingException;
import akka.actor.typed.javadsl.Behaviors;
import akka.cluster.Cluster;
import akka.testkit.javadsl.TestKit;
import org.junit.Test;
@ -188,4 +189,15 @@ public class SerializationDocTest {
TestKit.shutdownActorSystem(system);
}
public void demonstrateTheProgrammaticAPITyped() {
// #programmatic-typed
akka.actor.typed.ActorSystem<Void> system =
akka.actor.typed.ActorSystem.create(Behaviors.empty(), "example");
// Get the Serialization Extension
Serialization serialization =
SerializationExtension.get(akka.actor.typed.javadsl.Adapter.toClassic(system));
// #programmatic-typed
}
}