class DynamicAccess extends AnyRef
Utility class for creating instances from a FQCN, see [1] for the original source. It uses reflection to turn
fully-qualified class names into a Class[_]
from which instances can be created. All methods in this class are
unsafe and might throw exceptions that should be handled by users if this class.
[1] https://github.com/akka/akka/blob/master/akka-actor/src/main/scala/akka/actor/ReflectiveDynamicAccess.scala
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- DynamicAccess
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
- new DynamicAccess(classLoader: ClassLoader)
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- val classLoader: ClassLoader
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
createInstanceFor[T](fqcn: String, args: Seq[(Class[_], AnyRef)])(implicit arg0: ClassTag[T]): T
Tries to create an instance of the provided fully-qualified class name, passing the provided arguments to the constructor.
-
def
createInstanceFor[T](clazz: Class[_], args: Seq[(Class[_], AnyRef)])(implicit arg0: ClassTag[T]): T
Tries to create an instance of the provided class, passing the provided arguments to the constructor.
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
getClassFor[T](fqcn: String)(implicit arg0: ClassTag[T]): Class[_ <: T]
Tries to load a class that matches the provided fully-qualified class name.
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()