|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.ClassLoader play.classloading.ApplicationClassloader
public class ApplicationClassloader
The application classLoader. Load the classes from the application Java sources files.
Field Summary | |
---|---|
java.security.ProtectionDomain |
protectionDomain
This protection domain will be affecter to all loaded classes. |
Constructor Summary | |
---|---|
ApplicationClassloader()
|
Method Summary | |
---|---|
void |
detectChanges()
Detect Java changes |
java.util.List<java.lang.Class> |
getAllClasses()
Try to load all .java files found. |
java.util.List<java.lang.Class> |
getAnnotatedClasses(java.lang.Class clazz)
Retrieve all application classes with a specific annotation. |
java.util.List<java.lang.Class> |
getAnnotatedClasses(java.lang.Class[] clazz)
|
java.util.List<java.lang.Class> |
getAssignableClasses(java.lang.Class clazz)
Retrieve all application classes assignable to this class. |
protected byte[] |
getClassDefinition(java.lang.String name)
Search for the byte code of the given class. |
java.lang.Class |
getClassIgnoreCase(java.lang.String name)
Find a class in a case insensitive way |
java.net.URL |
getResource(java.lang.String name)
You know ... |
java.io.InputStream |
getResourceAsStream(java.lang.String name)
You know ... |
java.util.Enumeration<java.net.URL> |
getResources(java.lang.String name)
You know ... |
protected java.lang.Class |
loadApplicationClass(java.lang.String name)
|
protected java.lang.Class |
loadClass(java.lang.String name,
boolean resolve)
You know ... |
java.lang.String |
toString()
|
Methods inherited from class java.lang.ClassLoader |
---|
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findClass, findLibrary, findLoadedClass, findResource, findResources, findSystemClass, getPackage, getPackages, getParent, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public java.security.ProtectionDomain protectionDomain
Constructor Detail |
---|
public ApplicationClassloader()
Method Detail |
---|
protected java.lang.Class loadClass(java.lang.String name, boolean resolve) throws java.lang.ClassNotFoundException
loadClass
in class java.lang.ClassLoader
java.lang.ClassNotFoundException
protected java.lang.Class loadApplicationClass(java.lang.String name)
protected byte[] getClassDefinition(java.lang.String name)
public java.io.InputStream getResourceAsStream(java.lang.String name)
getResourceAsStream
in class java.lang.ClassLoader
public java.net.URL getResource(java.lang.String name)
getResource
in class java.lang.ClassLoader
public java.util.Enumeration<java.net.URL> getResources(java.lang.String name) throws java.io.IOException
getResources
in class java.lang.ClassLoader
java.io.IOException
public void detectChanges()
public java.util.List<java.lang.Class> getAllClasses()
public java.util.List<java.lang.Class> getAssignableClasses(java.lang.Class clazz)
clazz
- The superclass, or the interface.
public java.lang.Class getClassIgnoreCase(java.lang.String name)
nale
- The class name.
public java.util.List<java.lang.Class> getAnnotatedClasses(java.lang.Class clazz)
clazz
- The annotation class.
public java.util.List<java.lang.Class> getAnnotatedClasses(java.lang.Class[] clazz)
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |