Adding Ensime project file

This commit is contained in:
Jonas Boner 2010-07-11 12:14:43 +02:00
parent 4baceb1bae
commit f586aac0ed
3 changed files with 86 additions and 10 deletions

79
akka-core/.ensime Normal file
View file

@ -0,0 +1,79 @@
(
;; Where you unpacked the ENSIME distribution.
:server-root "/home/jboner/emacs-config/lib/ensime"
;; The command with which to invoke the ENSIME server. Change this to
;; "bin/server.bat" if your're on Windows.
:server-cmd "bin/server.bat"
;; The host to connect to. Connecting to remote ENSIME servers is not
;; currently supported.
;; ------------------------------
;; :server-host "localhost"
;; Assume a standard sbt directory structure. Look in default sbt
;; locations for dependencies, sources, target, etc.
;;
;; Note for sbt subprojects: Each subproject needs it's own .ensime
;; file.
;; -----------------------------
:use-sbt t
:sbt-compile-conf "compile"
;; Use an existing pom.xml to determine the dependencies
;; for the project. A Maven-style directory structure is assumed.
;; -----------------------------
;; :use-maven t
;; :maven-compile-scopes "compile"
;; :maven-runtime-scopes "runtime"
;; Use an existing ivy.xml to determine the dependencies
;; for the project. A Maven-style directory structure is assumed.
;; -----------------------------
;; :use-ivy t
;; :ivy-compile-conf "compile"
;; :ivy-runtime-conf "compile"
;; The home package for your project.
;; Used by ENSIME to populate the project outline view.
;; ------------------------------
:project-package "se.scalablesolutions.akka"
;; :sources ([dir | file]*)
;; Include source files by directory(recursively) or by filename.
;; ------------------------------
:sources ("src/main/")
;; :dependency-jars ([dir | file]*)
;; Include jars by directory(recursively) or by filename.
;; ------------------------------
;; :dependency-jars ("lib")
;; :dependency-dirs ([dir | file]*)
;; Include directories of .class files.
;; ------------------------------
;; :dependency-dirs ("target/classes")
;; :target dir
;; Specify the target of the project build process. Should be
;; the directory where .class files are written
;;
;; The target is used to populate the classpath when launching
;; the inferior scala repl.
;; ------------------------------
;; :target "target/classes"
)

View file

@ -402,13 +402,13 @@ trait ActorRef extends TransactionManagement {
* Returns the home address and port for this actor.
*/
def homeAddress: InetSocketAddress = _homeAddress
/**
* Set the home address and port for this actor.
*/
def homeAddress_=(hostnameAndPort: Tuple2[String, Int]): Unit =
homeAddress_=(new InetSocketAddress(hostnameAndPort._1, hostnameAndPort._2))
/**
* Set the home address and port for this actor.
*/
@ -529,7 +529,7 @@ trait ActorRef extends TransactionManagement {
protected[akka] def supervisor_=(sup: Option[ActorRef]): Unit
protected[akka] def mailbox: Deque[MessageInvocation]
protected[akka] def restart(reason: Throwable): Unit
protected[akka] def handleTrapExit(dead: ActorRef, reason: Throwable): Unit
@ -589,8 +589,7 @@ sealed class LocalActorRef private[akka](
__format.asInstanceOf[SerializerBasedActorFormat[_]]
.serializer
.fromBinary(__actorBytes, Some(actorClass)).asInstanceOf[Actor]
else
actorClass.newInstance.asInstanceOf[Actor]
else actorClass.newInstance.asInstanceOf[Actor]
})
loader = Some(__loader)
isDeserialized = true

View file

@ -36,9 +36,7 @@ object ActorRegistry extends ListenerManagement {
/**
* Returns all actors in the system.
*/
def actors: List[ActorRef] = {
filter(_=> true)
}
def actors: List[ActorRef] = filter(_ => true)
/**
* Invokes a function for all actors.
@ -52,7 +50,7 @@ object ActorRegistry extends ListenerManagement {
* Finds all actors that are subtypes of the class passed in as the Manifest argument and supproting passed message.
*/
def actorsFor[T <: Actor](message: Any)(implicit manifest: Manifest[T] ): List[ActorRef] =
filter(a => manifest.erasure.isAssignableFrom(a.actor.getClass) && a.isDefinedAt(message))
filter(a => manifest.erasure.isAssignableFrom(a.actor.getClass) && a.isDefinedAt(message))
/**
* Finds all actors that satisfy a predicate.
@ -73,7 +71,7 @@ object ActorRegistry extends ListenerManagement {
* Finds all actors that are subtypes of the class passed in as the Manifest argument.
*/
def actorsFor[T <: Actor](implicit manifest: Manifest[T]): List[ActorRef] =
filter(a => manifest.erasure.isAssignableFrom(a.actor.getClass))
filter(a => manifest.erasure.isAssignableFrom(a.actor.getClass))
/**
* Finds any actor that matches T.