ClassLoading

sealed trait ClassLoading

Exposes APIs for dynamically creating instances and holds the ClassLoader instance to be used by Kamon when looking up resources and classes.

Companion:
object
class Object
trait Matchable
class Any
object ClassLoading.type

Value members

Concrete methods

def changeClassLoader(classLoader: ClassLoader): Unit

Changes the ClassLoader used by Kamon to load resources and dynamically created instances.

Changes the ClassLoader used by Kamon to load resources and dynamically created instances.

def classLoader(): ClassLoader

Returns the ClassLoader used by Kamon to load resources and dynamically created instances.

Returns the ClassLoader used by Kamon to load resources and dynamically created instances.

def createInstance[T : ClassTag](fqcn: String): T

Tries to create an instance of a class with the provided fully-qualified class name and its no-arg constructor.

Tries to create an instance of a class with the provided fully-qualified class name and its no-arg constructor.

def createInstance[T : ClassTag](fqcn: String, args: Seq[(Class[_], AnyRef)]): T

Tries to create an instance of a class with the provided fully-qualified class name and the provided constructor arguments.

Tries to create an instance of a class with the provided fully-qualified class name and the provided constructor arguments.

def createInstance[T : ClassTag](clazz: Class[_]): T

Tries to create an instance of the provided Class with its no-arg constructor.

Tries to create an instance of the provided Class with its no-arg constructor.

def createInstance[T : ClassTag](clazz: Class[_], args: Seq[(Class[_], AnyRef)]): T

Tries to create an instance of with the provided Class and constructor arguments.

Tries to create an instance of with the provided Class and constructor arguments.

def resolveClass[T : ClassTag](fqcn: String): Class[_ <: T]

Tries load a class with the provided fully-qualified class name.

Tries load a class with the provided fully-qualified class name.