Created
June 8, 2015 07:03
-
-
Save diversit/8539f2bd578093f958ea to your computer and use it in GitHub Desktop.
IntelliJ Template creating Akka Actors best-practice
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
IntelliJ template for creating Akka actors: | |
--------START TEMPLATE--------- | |
#if ((${PACKAGE_NAME} && ${PACKAGE_NAME} != ""))package ${PACKAGE_NAME} #end | |
import akka.actor.Actor.Receive | |
import akka.actor.{Props, Actor, ActorLogging} | |
trait ${NAME} { | |
} | |
class ${NAME}Actor extends Actor with ${NAME} with ActorLogging { | |
override def receive: Receive = ??? | |
} | |
object ${NAME}Actor { | |
def props = Props[${NAME}Actor] | |
} | |
object ${NAME}Protocol { | |
} | |
--------END TEMPLATE---------- |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment