public class ClassLoaderHelper
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
TAG |
Constructor and Description |
---|
ClassLoaderHelper() |
Modifier and Type | Method and Description |
---|---|
static java.lang.Class<?> |
createClass(java.lang.String className)
Creates an Class given a classname and searches all plugins for that class.
|
static java.lang.Class<?> |
createClass(java.lang.String className,
java.lang.String packageName)
Creates an Class given a classname and package name.
|
static java.lang.Object |
createObject(java.lang.String classname)
Creates an Object given a classname.
|
static java.lang.Object |
createObject(java.lang.String className,
java.lang.String packageName)
Creates an Object given a classname.
|
public static final java.lang.String TAG
public static java.lang.Object createObject(java.lang.String className, java.lang.String packageName)
className
- is the classname to be used. The class needs to
have a no parameter constructor in order to instantiate.
This will walk through the list of all plugins.packageName
- the packageName to look at when instatiating the class for the plugin.public static java.lang.Object createObject(java.lang.String classname)
classname
- is the classname to be used. The class needs to
have a no parameter constructor in order to instantiate.
This will walk through the list of all plugins.public static java.lang.Class<?> createClass(java.lang.String className, java.lang.String packageName)
className
- is the class name to be used.packageName
- the package name of the apk to be used.public static java.lang.Class<?> createClass(java.lang.String className)
className
- is the class name to be used.
This implementation searches through all plugins for the specified class