Reflectively looks up an instantiatable class.
Reflectively looks up an instantiatable class.
The class or one of its super types (classes or traits) must be annotated
with
@EnableReflectiveInstantiation.
Moreover, the class must not be abstract, nor be a local class (i.e., a
class defined inside a def
or inside an anonymous function). Inner
classes (defined inside another class) are supported.
If the class cannot be found, either because it does not exist,
was not @EnableReflectiveInstantiation
or was abstract or local, this
method returns None
.
Fully-qualified name of the class
Class loader to use to load the class
Reflectively looks up an instantiatable class using the current class loader.
Reflectively looks up an instantiatable class using the current class loader.
The class or one of its super types (classes or traits) must be annotated
with
@EnableReflectiveInstantiation.
Moreover, the class must not be abstract, nor be a local class (i.e., a
class defined inside a def
or inside an anonymous function). Inner
classes (defined inside another class) are supported.
If the class cannot be found, either because it does not exist,
was not @EnableReflectiveInstantiation
or was abstract or local, this
method returns None
.
This method is equivalent to calling
Reflect.lookupInstantiatableClass(fqcn, this.getClass.getClassLoader)
Fully-qualified name of the class
Reflectively looks up a loadable module class.
Reflectively looks up a loadable module class.
A module class is the technical term referring to the class of a Scala
object
. The object or one of its super types (classes or traits) must
be annotated with
@EnableReflectiveInstantiation.
Moreover, the object must be "static", i.e., declared at the top-level of
a package or inside a static object.
If the module class cannot be found, either because it does not exist,
was not @EnableReflectiveInstantiation
or was not static, this method
returns None
.
Fully-qualified name of the module class, including its trailing $
Class loader to use to load the module class
Reflectively looks up a loadable module class using the current class loader.
Reflectively looks up a loadable module class using the current class loader.
A module class is the technical term referring to the class of a Scala
object
. The object or one of its super types (classes or traits) must
be annotated with
@EnableReflectiveInstantiation.
Moreover, the object must be "static", i.e., declared at the top-level of
a package or inside a static object.
If the module class cannot be found, either because it does not exist,
was not @EnableReflectiveInstantiation
or was not static, this method
returns None
.
This method is equivalent to calling
Reflect.lookupLoadableModuleClass(fqcn, this.getClass.getClassLoader)
Fully-qualified name of the module class, including its trailing $