|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecthelma.framework.core.TypeManager
public final class TypeManager
The type manager periodically checks the prototype definitions for its applications and updates the evaluators if anything has changed.
Constructor Summary | |
---|---|
TypeManager(Application app,
java.lang.String ignore)
Creates a new TypeManager object. |
Method Summary | |
---|---|
void |
checkPrototypes()
Run through application's prototype directories and check if anything has been updated. |
protected void |
checkRepository(Repository repository,
boolean update)
|
Prototype |
createPrototype(java.lang.String typename,
Repository repository)
Create and register a new Prototype. |
void |
createPrototypes()
Run through application's prototype directories and create prototypes, but don't compile or evaluate any scripts. |
java.lang.ClassLoader |
getClassLoader()
Return the class loader used by this application. |
long |
getLastCodeUpdate()
Returns the last time any resource in this app was modified. |
Prototype |
getPrototype(java.lang.String typename)
Get a prototype defined for this application |
java.util.Collection |
getPrototypes()
Return a collection containing the prototypes defined for this type manager. |
void |
setLastCodeUpdate(long update)
Set the last time any resource in this app was modified. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TypeManager(Application app, java.lang.String ignore)
app
- ...
java.lang.RuntimeException
- ...Method Detail |
---|
public void createPrototypes() throws java.io.IOException
java.io.IOException
public void checkPrototypes() throws java.io.IOException
java.io.IOException
protected void checkRepository(Repository repository, boolean update) throws java.io.IOException
java.io.IOException
public long getLastCodeUpdate()
public void setLastCodeUpdate(long update)
public java.lang.ClassLoader getClassLoader()
public java.util.Collection getPrototypes()
public Prototype getPrototype(java.lang.String typename)
public Prototype createPrototype(java.lang.String typename, Repository repository)
typename
- the name of the prototyperepository
- the first prototype source
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |