Classes

trait Classes extends ClassOperations
Companion:
object
class Object
trait Matchable
class Any
object Classes.type

Value members

Concrete methods

def createInstance[T <: AnyRef](className: String, loader: ClassLoader, defaultInstances: => List[AnyRef])(using m: ClassTag[T]): Operation[T]
def createInstanceEither[T <: AnyRef](className: String, loader: ClassLoader, defaultInstances: => List[AnyRef])(using m: ClassTag[T]): Operation[Either[Throwable, T]]

try to create an instance but return an exception if this is not possible

try to create an instance but return an exception if this is not possible

def createInstanceFromClass[T <: AnyRef](klass: Class[T], defaultInstances: => List[AnyRef])(using m: ClassTag[T]): Operation[T]
def createInstanceFromClass[T <: AnyRef](klass: Class[T], loader: ClassLoader, defaultInstances: => List[AnyRef])(using m: ClassTag[T]): Operation[T]
def createInstanceFromName[T <: AnyRef](className: String, defaultInstances: => List[AnyRef])(using m: ClassTag[T]): Operation[T]
def existsClass(className: String, loader: ClassLoader): Operation[Boolean]
def loadClass[T <: AnyRef](className: String, loader: ClassLoader): Operation[Class[T]]
def loadClassEither[T <: AnyRef](className: String, loader: ClassLoader): Operation[Either[Throwable, Class[T]]]
def loadModule(name: String): Any
def newInstance(name: String, defaultInstances: => List[AnyRef]): Any
def newInstance(klass: InstantiatableClass, defaultInstances: => List[AnyRef]): Any