instantiate

open fun instantiate(names: Collection<String>): List<T>

Instantiate the given set of class name, injecting constructor arguments as necessary.

Return

a list of instantiated instances

Parameters

names

the class names to instantiate


open fun instantiate(classLoader: ClassLoader, names: Collection<String>): List<T>

Instantiate the given set of class name, injecting constructor arguments as necessary.

Return

a list of instantiated instances

Since

2.4.8

Parameters

classLoader

the source classloader

names

the class names to instantiate


open fun instantiate(name: String): T

Instantiate the given set of class name, injecting constructor arguments as necessary.

Return

an instantiated instance

Since

3.4.0

Parameters

name

the class name to instantiate


open fun instantiate(classLoader: ClassLoader, name: String): T

Instantiate the given set of class name, injecting constructor arguments as necessary.

Return

an instantiated instance

Since

3.4.0

Parameters

classLoader

the source classloader

name

the class name to instantiate