show package name in getting started examples, #28432 (#29757)

* at least the first few examples
This commit is contained in:
Patrik Nordwall 2020-10-19 15:45:16 +02:00 committed by GitHub
parent 330893e2c1
commit 9c200e3a04
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 57 additions and 7 deletions

View file

@ -4,13 +4,15 @@
package jdocs.typed.tutorial_1;
/*
//#print-refs
package com.example
//#print-refs
*/
import akka.actor.typed.PreRestart;
import akka.actor.typed.SupervisorStrategy;
import org.junit.ClassRule;
import org.junit.Test;
import org.scalatestplus.junit.JUnitSuite;
import akka.actor.testkit.typed.javadsl.TestKitJunitResource;
import akka.actor.typed.PostStop;
// #print-refs

View file

@ -4,6 +4,13 @@
package jdocs.typed.tutorial_2;
/*
//#iot-app
package com.example;
//#iot-app
*/
// #iot-app
import akka.actor.typed.ActorSystem;

View file

@ -4,6 +4,13 @@
package jdocs.typed.tutorial_2;
/*
//#iot-supervisor
package com.example;
//#iot-supervisor
*/
// #iot-supervisor
import akka.actor.typed.Behavior;
import akka.actor.typed.PostStop;

View file

@ -4,11 +4,17 @@
package jdocs.typed.tutorial_3.inprogress1;
import akka.actor.typed.ActorRef;
/*
//#read-protocol-1
package com.example;
import java.util.Optional;
//#read-protocol-1
*/
// #read-protocol-1
import akka.actor.typed.ActorRef;
import java.util.Optional;
public class Device {
public interface Command {}

View file

@ -4,6 +4,13 @@
package typed.tutorial_1
/*
//#print-refs
package com.example
//#print-refs
*/
import akka.actor.testkit.typed.scaladsl.ScalaTestWithActorTestKit
import org.scalatest.wordspec.AnyWordSpecLike
import akka.actor.typed.PostStop

View file

@ -4,6 +4,13 @@
package typed.tutorial_2
/*
//#iot-app
package com.example
//#iot-app
*/
//#iot-app
import akka.actor.typed.ActorSystem

View file

@ -4,6 +4,13 @@
package typed.tutorial_2
/*
//#iot-supervisor
package com.example
//#iot-supervisor
*/
//#iot-supervisor
import akka.actor.typed.Behavior
import akka.actor.typed.PostStop

View file

@ -4,6 +4,13 @@
package typed.tutorial_3
/*
//#read-protocol-1
package com.example
//#read-protocol-1
*/
import akka.actor.typed.PostStop
import akka.actor.typed.Signal