|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.sf.bluprints.Engine
public class Engine
This class is the main engine. Given a URI to a Bluprints XML file in the classpath, this will parse the file as well as determine when to reload the file based on the configuration in the XML file.
The default URI to the classpath entry for the Bluprints XML file is always:
bluprints.xml
Constructor Summary | |
---|---|
Engine(long reloadSeconds,
String... uris)
Constructs a new engine. |
Method Summary | |
---|---|
Bluprint |
getPage(String name)
Returns the Bluprint for the given name, or null. |
long |
getReloadSeconds()
Determines how often the configuration file is reloaded. |
void |
setReloadSeconds(long reloadSeconds)
Determines how often the configuration file is reloaded. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Engine(long reloadSeconds, String... uris)
Method Detail |
---|
public long getReloadSeconds()
Defaults to 1 second
public void setReloadSeconds(long reloadSeconds)
Defaults to 1 second
public Bluprint getPage(String name)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |