public class TypedActor$ extends java.lang.Object implements ExtensionId<TypedActorExtension>, ExtensionIdProvider
Modifier and Type | Field and Description |
---|---|
static TypedActor$ |
MODULE$
Static reference to the singleton instance of this Scala object.
|
Constructor and Description |
---|
TypedActor$() |
Modifier and Type | Method and Description |
---|---|
TypedActorFactory |
apply(ActorContext context)
Returns a contextual TypedActorFactory of this extension, this means that any TypedActors created by this TypedActorExtension
will be children to the specified context, this allows for creating hierarchies of TypedActors.
|
ActorContext |
context()
Returns the ActorContext (for a TypedActor) when inside a method call in a TypedActor.
|
TypedActorExtension |
createExtension(ExtendedActorSystem system)
Is used by Akka to instantiate the Extension identified by this ExtensionId,
internal use only.
|
scala.concurrent.ExecutionContextExecutor |
dispatcher()
Returns the default dispatcher (for a TypedActor) when inside a method call in a TypedActor.
|
TypedActorFactory |
get(ActorContext context)
Returns a contextual TypedActorFactory of this extension, this means that any TypedActors created by this TypedActorExtension
will be children to the specified context, this allows for creating hierarchies of TypedActors.
|
TypedActorExtension |
get(ActorSystem system)
Returns an instance of the extension identified by this ExtensionId instance.
|
TypedActor$ |
lookup()
Returns the canonical ExtensionId for this Extension
|
<T> T |
self()
Returns the reference to the proxy when called inside a method call in a TypedActor
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
apply, equals, hashCode
public static final TypedActor$ MODULE$
public TypedActorExtension get(ActorSystem system)
ExtensionId
override def get(system: ActorSystem): TheExtension = super.get(system)
get
in interface ExtensionId<TypedActorExtension>
system
- (undocumented)public TypedActor$ lookup()
ExtensionIdProvider
lookup
in interface ExtensionIdProvider
public TypedActorExtension createExtension(ExtendedActorSystem system)
ExtensionId
createExtension
in interface ExtensionId<TypedActorExtension>
system
- (undocumented)public TypedActorFactory apply(ActorContext context)
context
- (undocumented)public TypedActorFactory get(ActorContext context)
Java API
context
- (undocumented)public <T> T self()
Example:
class FooImpl extends Foo { def doFoo { val myself = TypedActor.self[Foo] } }Useful when you want to send a reference to this TypedActor to someone else.
NEVER EXPOSE "this" to someone else, always use "self[TypeOfInterface(s)]"
Throws IllegalStateException if called outside of the scope of a method on this TypedActor.
Throws ClassCastException if the supplied type T isn't the type of the proxy associated with this TypedActor.
public ActorContext context()
public scala.concurrent.ExecutionContextExecutor dispatcher()