|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object play.classloading.ApplicationClasses
public class ApplicationClasses
Application classes container.
Nested Class Summary | |
---|---|
static class |
ApplicationClasses.ApplicationClass
Represent a application class |
Constructor Summary | |
---|---|
ApplicationClasses()
|
Method Summary | |
---|---|
void |
add(ApplicationClasses.ApplicationClass applicationClass)
Put a new class to the cache. |
java.util.List<ApplicationClasses.ApplicationClass> |
all()
All loaded classes. |
void |
clear()
Clear the classes cache |
java.util.List<ApplicationClasses.ApplicationClass> |
getAnnotatedClasses(java.lang.Class<? extends java.lang.annotation.Annotation> clazz)
Retrieve all application classes with a specific annotation. |
ApplicationClasses.ApplicationClass |
getApplicationClass(java.lang.String name)
Get a class by name |
java.util.List<ApplicationClasses.ApplicationClass> |
getAssignableClasses(java.lang.Class<?> clazz)
Retrieve all application classes assignable to this class. |
static VirtualFile |
getJava(java.lang.String name)
Retrieve the corresponding source file for a given class name. |
boolean |
hasClass(java.lang.String name)
Does this class is already loaded ? |
void |
remove(ApplicationClasses.ApplicationClass applicationClass)
Remove a class from cache |
void |
remove(java.lang.String applicationClass)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ApplicationClasses()
Method Detail |
---|
public void clear()
public ApplicationClasses.ApplicationClass getApplicationClass(java.lang.String name)
name
- The fully qualified class name
public java.util.List<ApplicationClasses.ApplicationClass> getAssignableClasses(java.lang.Class<?> clazz)
clazz
- The superclass, or the interface.
public java.util.List<ApplicationClasses.ApplicationClass> getAnnotatedClasses(java.lang.Class<? extends java.lang.annotation.Annotation> clazz)
clazz
- The annotation class.
public java.util.List<ApplicationClasses.ApplicationClass> all()
public void add(ApplicationClasses.ApplicationClass applicationClass)
public void remove(ApplicationClasses.ApplicationClass applicationClass)
public void remove(java.lang.String applicationClass)
public boolean hasClass(java.lang.String name)
name
- The fully qualified class namepublic static VirtualFile getJava(java.lang.String name)
name
- The fully qualified class name
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 |