Skip to content

Commit

Permalink
match chapter numbers in code to their folders
Browse files Browse the repository at this point in the history
  • Loading branch information
rkuhn committed Dec 20, 2016
1 parent 1a94eae commit b59708e
Show file tree
Hide file tree
Showing 29 changed files with 33 additions and 33 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* Copyright (C) 2015 Roland Kuhn <http://rolandkuhn.com>
*/
package com.reactivedesignpatterns.chapter12
package com.reactivedesignpatterns.chapter13

import akka.actor._
import play.api.libs.json.JsValue
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* Copyright (C) 2015 Roland Kuhn <http://rolandkuhn.com>
*/
package com.reactivedesignpatterns.chapter12
package com.reactivedesignpatterns.chapter13

import sbt.IO
import play.api.libs.json._
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* Copyright (C) 2015 Roland Kuhn <http://rolandkuhn.com>
*/
package com.reactivedesignpatterns.chapter12
package com.reactivedesignpatterns.chapter13

import play.api.libs.json.JsValue
import java.io.File
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.reactivedesignpatterns.chapter12
package com.reactivedesignpatterns.chapter13

import akka.actor._
import akka.cluster.ddata._
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.reactivedesignpatterns.chapter12
package com.reactivedesignpatterns.chapter13

import scala.concurrent.duration.FiniteDuration
import scala.concurrent.duration.Deadline
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.reactivedesignpatterns.chapter12
package com.reactivedesignpatterns.chapter13

import org.scalatest.WordSpec
import org.scalatest.Matchers
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* Copyright (C) 2015 Roland Kuhn <http://rolandkuhn.com>
*/
package com.reactivedesignpatterns.chapter13;
package com.reactivedesignpatterns.chapter14;

import java.util.Collection;
import java.util.Collections;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
package com.reactivedesignpatterns.chapter13;
package com.reactivedesignpatterns.chapter14;

import java.io.IOException;
import java.io.InputStream;
import java.util.Scanner;

import com.reactivedesignpatterns.chapter13.ComplexCommand.*;
import com.reactivedesignpatterns.chapter14.ComplexCommand.*;

public class ComplexCommandTest {
public static void main(String[] args) throws IOException {
try (InputStream js = ComplexCommandTest.class.getResourceAsStream("/com/reactivedesignpatterns/chapter13/job.js");
try (InputStream js = ComplexCommandTest.class.getResourceAsStream("/com/reactivedesignpatterns/chapter14/job.js");
Scanner s = new Scanner(js, "UTF-8")) {
s.useDelimiter("\\A");
final BatchJobJS job = new BatchJobJS("", s.next(), "");
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.reactivedesignpatterns.chapter13;
package com.reactivedesignpatterns.chapter14;

import java.sql.Connection;
import java.sql.ResultSet;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* Copyright (C) 2015 Roland Kuhn <http://rolandkuhn.com>
*/
package com.reactivedesignpatterns.chapter13;
package com.reactivedesignpatterns.chapter14;

import java.net.InetAddress;
import java.util.ArrayList;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* Copyright (C) 2015 Roland Kuhn <http://rolandkuhn.com>
*/
package com.reactivedesignpatterns.chapter14;
package com.reactivedesignpatterns.chapter15;

import java.io.IOException;
import java.net.DatagramPacket;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* Copyright (C) 2015 Roland Kuhn <http://rolandkuhn.com>
*/
package com.reactivedesignpatterns.chapter14
package com.reactivedesignpatterns.chapter15

import akka.typed._
import akka.typed.ScalaDSL._
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* Copyright (C) 2015 Roland Kuhn <http://rolandkuhn.com>
*/
package com.reactivedesignpatterns.chapter14
package com.reactivedesignpatterns.chapter15

import akka.typed._
import akka.typed.ScalaDSL._
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* Copyright (C) 2015 Roland Kuhn <http://rolandkuhn.com>
*/
package com.reactivedesignpatterns.chapter14
package com.reactivedesignpatterns.chapter15

import akka.actor._
import akka.persistence._
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* Copyright (C) 2015 Roland Kuhn <http://rolandkuhn.com>
*/
package com.reactivedesignpatterns.chapter14
package com.reactivedesignpatterns.chapter15

import akka.actor._

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* Copyright (C) 2015 Roland Kuhn <http://rolandkuhn.com>
*/
package com.reactivedesignpatterns.chapter14
package com.reactivedesignpatterns.chapter15

import akka.typed._
import akka.typed.ScalaDSL._
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* Copyright (C) 2015 Roland Kuhn <http://rolandkuhn.com>
*/
package com.reactivedesignpatterns.chapter14
package com.reactivedesignpatterns.chapter15

import akka.actor._
import akka.persistence.PersistentActor
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* Copyright (C) 2015 Roland Kuhn <http://rolandkuhn.com>
*/
package com.reactivedesignpatterns.chapter15
package com.reactivedesignpatterns.chapter16

import java.math.MathContext
import java.math.RoundingMode
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* Copyright (C) 2015 Roland Kuhn <http://rolandkuhn.com>
*/
package com.reactivedesignpatterns.chapter15
package com.reactivedesignpatterns.chapter16

import java.math.MathContext
import java.math.RoundingMode
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* Copyright (C) 2015 Roland Kuhn <http://rolandkuhn.com>
*/
package com.reactivedesignpatterns.chapter15
package com.reactivedesignpatterns.chapter16

import java.math.MathContext
import java.math.RoundingMode
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* Copyright (C) 2015 Roland Kuhn <http://rolandkuhn.com>
*/
package com.reactivedesignpatterns.chapter15
package com.reactivedesignpatterns.chapter16

import java.math.MathContext
import java.math.RoundingMode
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* Copyright (C) 2015 Roland Kuhn <http://rolandkuhn.com>
*/
package com.reactivedesignpatterns.chapter15
package com.reactivedesignpatterns.chapter16

import java.math.MathContext
import java.math.RoundingMode
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* Copyright (C) 2015 Roland Kuhn <http://rolandkuhn.com>
*/
package com.reactivedesignpatterns.chapter16
package com.reactivedesignpatterns.chapter17

trait ShoppingCartMessage {
def shoppingCart: ShoppingCartRef
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* Copyright (C) 2015 Roland Kuhn <http://rolandkuhn.com>
*/
package com.reactivedesignpatterns.chapter16
package com.reactivedesignpatterns.chapter17

import java.net.URI

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* Copyright (C) 2015 Roland Kuhn <http://rolandkuhn.com>
*/
package com.reactivedesignpatterns.chapter16
package com.reactivedesignpatterns.chapter17

import akka.persistence.PersistentActor
import akka.actor._
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* Copyright (C) 2015 Roland Kuhn <http://rolandkuhn.com>
*/
package com.reactivedesignpatterns.chapter16
package com.reactivedesignpatterns.chapter17

import akka.actor._
import akka.stream._
Expand Down Expand Up @@ -121,10 +121,10 @@ akka.persistence.journal {
leveldb {
native = off
event-adapters {
tagging = "com.reactivedesignpatterns.chapter16.ShoppingCartTagging"
tagging = "com.reactivedesignpatterns.chapter17.ShoppingCartTagging"
}
event-adapter-bindings {
"com.reactivedesignpatterns.chapter16.ShoppingCartMessage" = tagging
"com.reactivedesignpatterns.chapter17.ShoppingCartMessage" = tagging
}
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* Copyright (C) 2015 Roland Kuhn <http://rolandkuhn.com>
*/
package com.reactivedesignpatterns.chapter16
package com.reactivedesignpatterns.chapter17

sealed trait Event extends ShoppingCartMessage
case class OwnerChanged(shoppingCart: ShoppingCartRef, owner: CustomerRef) extends Event
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* Copyright (C) 2015 Roland Kuhn <http://rolandkuhn.com>
*/
package com.reactivedesignpatterns.chapter16
package com.reactivedesignpatterns.chapter17

import java.net.URI
import java.util.UUID
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* Copyright (C) 2015 Roland Kuhn <http://rolandkuhn.com>
*/
package com.reactivedesignpatterns.chapter16
package com.reactivedesignpatterns.chapter17

import com.typesafe.config.ConfigFactory
import akka.actor._
Expand Down

0 comments on commit b59708e

Please sign in to comment.