|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.ClassLoader java.security.SecureClassLoader org.cesta.loader.AdvancedClassLoader<C>
public class AdvancedClassLoader<C>
Type safe class loader for specified class.
Field Summary | |
---|---|
protected java.lang.Class<C> |
innerClass
|
protected java.util.ServiceLoader<C> |
serviceLoader
|
Constructor Summary | |
---|---|
|
AdvancedClassLoader(java.lang.Class<C> innerClass)
|
protected |
AdvancedClassLoader(java.lang.Class<C> innerClass,
java.lang.ClassLoader parent)
|
Method Summary | |
---|---|
C |
getInstance(java.lang.String name)
|
java.util.ServiceLoader<C> |
getServiceLoader()
|
java.lang.Object |
getStaticField(java.lang.Class<C> cl,
java.lang.String fieldName)
Returns static field object with given name from given class. |
java.lang.Object |
getStaticField(java.lang.String className,
java.lang.String fieldName)
Return static field object with given name from given class. |
java.lang.Class<C> |
loadInnerClass(java.lang.String name)
Returns class with given name or null, if not found. |
void |
reload()
|
void |
setServiceLoader(java.util.ServiceLoader<C> serviceLoader)
|
Methods inherited from class java.security.SecureClassLoader |
---|
defineClass, defineClass, getPermissions |
Methods inherited from class java.lang.ClassLoader |
---|
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findClass, findLibrary, findLoadedClass, findResource, findResources, findSystemClass, getPackage, getPackages, getParent, getResource, getResourceAsStream, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, loadClass, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.util.ServiceLoader<C> serviceLoader
protected java.lang.Class<C> innerClass
Constructor Detail |
---|
protected AdvancedClassLoader(java.lang.Class<C> innerClass, java.lang.ClassLoader parent)
public AdvancedClassLoader(java.lang.Class<C> innerClass)
Method Detail |
---|
public void reload()
public java.util.ServiceLoader<C> getServiceLoader()
public void setServiceLoader(java.util.ServiceLoader<C> serviceLoader)
serviceLoader
- the serviceLoader to setpublic java.lang.Class<C> loadInnerClass(java.lang.String name)
name
- Name of transformation class
public C getInstance(java.lang.String name) throws java.lang.InstantiationException, java.lang.IllegalAccessException
java.lang.InstantiationException
java.lang.IllegalAccessException
public java.lang.Object getStaticField(java.lang.String className, java.lang.String fieldName)
className
- name of classfieldName
- name of field
public java.lang.Object getStaticField(java.lang.Class<C> cl, java.lang.String fieldName)
cl
- classfieldName
- name of field
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |