|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.cocoon.core.Core
This is the core Cocoon component. It can be looked up to get access to various information about the current installation. The core of Cocoon is a singleton object that is created on startup.
| Nested Class Summary | |
static interface |
Core.CleanupTask
The interface for the cleanup task. |
static class |
Core.SitemapImpl
|
| Field Summary | |
static String |
ROLE
The key to lookup the component. |
| Constructor Summary | |
Core(Settings s,
Context c)
Constructor The core object is created by the CoreUtil class. |
|
| Method Summary | |
static void |
addCleanupTask(Core.CleanupTask task)
Add a cleanup task. |
static void |
cleanup()
Invoke all registered cleanup tasks for the current process. |
File |
getCacheDirectory()
Return the cache directory. |
Context |
getContext()
Return the Avalon context. |
Map |
getCurrentObjectModel()
Return the current object model |
Sitemap |
getCurrentSitemap()
Return the current sitemap. |
Context |
getEnvironmentContext()
Return the environment context object. |
Settings |
getSettings()
Return the settings. |
File |
getUploadDirectory()
Return the upload directory. |
File |
getWorkDirectory()
Return the work directory. |
void |
update(DynamicSettings dynSettings)
Update the dynamic settings at runtime. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static String ROLE
| Constructor Detail |
public Core(Settings s,
Context c)
CoreUtil class. Never construct
a core object yourself (apart from testing of course)!
s - The settingsc - The context| Method Detail |
public static void addCleanupTask(Core.CleanupTask task)
task - The task to run.public static void cleanup()
public Settings getSettings()
public void update(DynamicSettings dynSettings)
dynSettings - public Context getEnvironmentContext()
public Context getContext()
public Map getCurrentObjectModel()
public File getWorkDirectory()
public File getUploadDirectory()
public File getCacheDirectory()
public Sitemap getCurrentSitemap()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||