public interface InstanceFactory
Modifier and Type | Method and Description |
---|---|
<T> T |
getInstance(Class<T> clazz)
Gets an instance of a class.
|
Object |
getInstance(String className)
Get an instance of a class.
|
Object |
getInstance(String className,
ClassLoader classLoader)
Get an instance of a class from a specific classloader.
|
Object getInstance(String className) throws ClassNotFoundException
className
- name of class.ClassNotFoundException
- if the class does not exist.Object getInstance(String className, ClassLoader classLoader) throws ClassNotFoundException
className
- name of class.classLoader
- class loader.ClassNotFoundException
- if the class does not exist.<T> T getInstance(Class<T> clazz)
T
- type of class.clazz
- class.Copyright © 2019 Atlassian. All rights reserved.