akka.actor

ReflectiveDynamicAccess

class ReflectiveDynamicAccess extends DynamicAccess

This is the default DynamicAccess implementation used by ActorSystemImpl unless overridden. It uses reflection to turn fully-qualified class names into Class[_] objects and creates instances from there using getDeclaredConstructor() and invoking that. The class loader to be used for all this is determined by the ActorSystemImpl’s findClassLoader method by default.

Linear Supertypes
DynamicAccess, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. ReflectiveDynamicAccess
  2. DynamicAccess
  3. AnyRef
  4. Any
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ReflectiveDynamicAccess(classLoader: ClassLoader)

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. val classLoader: ClassLoader

    This is the class loader to be used in those special cases where the other factory method are not applicable (e.

    This is the class loader to be used in those special cases where the other factory method are not applicable (e.g. when constructing a ClassLoaderBinaryInputStream).

    Definition Classes
    ReflectiveDynamicAccessDynamicAccess
  8. def clone(): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  9. def createInstanceFor[T](fqcn: String, args: Seq[(Class[_], AnyRef)])(implicit arg0: ClassManifest[T]): Either[Throwable, T]

    Obtain an object conforming to the type T, which is expected to be instantiated from a class designated by the fully-qualified class name given, where the constructor is selected and invoked according to the args argument.

    Obtain an object conforming to the type T, which is expected to be instantiated from a class designated by the fully-qualified class name given, where the constructor is selected and invoked according to the args argument. The exact usage of args depends on which type is requested, see the relevant requesting code for details.

    Definition Classes
    ReflectiveDynamicAccessDynamicAccess
  10. def createInstanceFor[T](clazz: Class[_], args: Seq[(Class[_], AnyRef)])(implicit arg0: ClassManifest[T]): Either[Throwable, T]

    Convenience method which given a Class[_] object and a constructor description will create a new instance of that class.

    Convenience method which given a Class[_] object and a constructor description will create a new instance of that class.

    val obj = DynamicAccess.createInstanceFor(clazz, Seq(classOf[Config] -> config, classOf[String] -> name))
    
    Definition Classes
    DynamicAccess
  11. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  12. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  13. def finalize(): Unit

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  14. final def getClass(): java.lang.Class[_]

    Definition Classes
    AnyRef → Any
  15. def getClassFor[T](fqcn: String)(implicit arg0: ClassManifest[T]): Either[Throwable, Class[_ <: T]]

    Obtain a Class[_] object loaded with the right class loader (i.

    Obtain a Class[_] object loaded with the right class loader (i.e. the one returned by classLoader).

    Definition Classes
    ReflectiveDynamicAccessDynamicAccess
  16. def getObjectFor[T](fqcn: String)(implicit arg0: ClassManifest[T]): Either[Throwable, T]

    Obtain the Scala “object” instance for the given fully-qualified class name, if there is one.

    Obtain the Scala “object” instance for the given fully-qualified class name, if there is one.

    Definition Classes
    ReflectiveDynamicAccessDynamicAccess
  17. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  18. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  19. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  20. final def notify(): Unit

    Definition Classes
    AnyRef
  21. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  22. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  23. def toString(): String

    Definition Classes
    AnyRef → Any
  24. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  25. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  26. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  27. final def withErrorHandling[T](body: ⇒ Either[Throwable, T]): Either[Throwable, T]

    Caught exception is returned as Left(exception).

    Caught exception is returned as Left(exception). Unwraps InvocationTargetException if its getTargetException is an Exception. Other Throwable, such as Error is thrown.

    Definition Classes
    DynamicAccess
    Annotations
    @inline()

Inherited from DynamicAccess

Inherited from AnyRef

Inherited from Any