akka.actor
Class ContextualTypedActorFactory

java.lang.Object
  extended by akka.actor.ContextualTypedActorFactory
All Implemented Interfaces:
TypedActorFactory, java.io.Serializable, scala.Equals, scala.Product

public class ContextualTypedActorFactory
extends java.lang.Object
implements TypedActorFactory, scala.Product, scala.Serializable

ContextualTypedActorFactory allows TypedActors to create children, effectively forming the same Actor Supervision Hierarchies as normal Actors can.

See Also:
Serialized Form

Constructor Summary
ContextualTypedActorFactory(TypedActorExtension typedActor, ActorContext actorFactory)
           
 
Method Summary
 ActorContext actorFactory()
          Underlying dependency is to be able to create normal Actors
 ActorRef getActorRefFor(java.lang.Object proxy)
          Retrieves the underlying ActorRef for the supplied TypedActor proxy, or null if none found
 boolean isTypedActor(java.lang.Object proxyOrNot)
          Returns wether the supplied AnyRef is a TypedActor proxy or not
 TypedActorExtension typedActor()
          Underlying dependency to a TypedActorExtension, which can either be contextual or ActorSystem "global"
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface akka.actor.TypedActorFactory
poisonPill, stop, typedActorOf, typedActorOf, typedActorOf
 
Methods inherited from interface scala.Product
productArity, productElement, productIterator, productPrefix
 
Methods inherited from interface scala.Equals
canEqual, equals
 

Constructor Detail

ContextualTypedActorFactory

public ContextualTypedActorFactory(TypedActorExtension typedActor,
                                   ActorContext actorFactory)
Method Detail

typedActor

public TypedActorExtension typedActor()
Description copied from interface: TypedActorFactory
Underlying dependency to a TypedActorExtension, which can either be contextual or ActorSystem "global"

Specified by:
typedActor in interface TypedActorFactory
Returns:
(undocumented)

actorFactory

public ActorContext actorFactory()
Description copied from interface: TypedActorFactory
Underlying dependency is to be able to create normal Actors

Specified by:
actorFactory in interface TypedActorFactory
Returns:
(undocumented)

getActorRefFor

public ActorRef getActorRefFor(java.lang.Object proxy)
Description copied from interface: TypedActorFactory
Retrieves the underlying ActorRef for the supplied TypedActor proxy, or null if none found

Specified by:
getActorRefFor in interface TypedActorFactory
Parameters:
proxy - (undocumented)
Returns:
(undocumented)

isTypedActor

public boolean isTypedActor(java.lang.Object proxyOrNot)
Description copied from interface: TypedActorFactory
Returns wether the supplied AnyRef is a TypedActor proxy or not

Specified by:
isTypedActor in interface TypedActorFactory
Parameters:
proxyOrNot - (undocumented)
Returns:
(undocumented)