Added convenience method to ActorRegistry
This commit is contained in:
parent
3ad111876a
commit
ceda35d402
1 changed files with 6 additions and 0 deletions
|
|
@ -65,6 +65,12 @@ object ActorRegistry extends Logging {
|
|||
all.toList
|
||||
}
|
||||
|
||||
/**
|
||||
* Finds any actor that matches T.
|
||||
*/
|
||||
def actorFor[T <: Actor](implicit manifest: Manifest[T]): Option[ActorRef] =
|
||||
actorsFor[T](manifest).headOption
|
||||
|
||||
/**
|
||||
* Finds all actors of the exact type specified by the class passed in as the Class argument.
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue