com.mkdoc.util
Class AbstractApplicationContext

java.lang.Object
  |
  +--com.mkdoc.util.AbstractApplicationContext
All Implemented Interfaces:
ApplicationContext
Direct Known Subclasses:
PluginApplicationContext, ServletApplicationContext

public abstract class AbstractApplicationContext
extends java.lang.Object
implements ApplicationContext

Base superclass for application contexts.

Version:
0.2 2005-10-14
Author:
Philip Shaw

Field Summary
 
Fields inherited from interface com.mkdoc.util.ApplicationContext
ABSOLUTE, DIRECTORY, REPOSITORY
 
Constructor Summary
AbstractApplicationContext()
           
 
Method Summary
protected abstract  java.io.File getDefaultStoreDirectory()
          A template method to get a default store directory.
 java.io.File getStoreDirectory()
          Get the store directory.
 java.lang.String getStorePath()
          Get the reopsitory file path, if any.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.mkdoc.util.ApplicationContext
getBooleanParameter, getClassParameter, getStringParameter
 

Constructor Detail

AbstractApplicationContext

public AbstractApplicationContext()
Method Detail

getStoreDirectory

public final java.io.File getStoreDirectory()
Get the store directory.

Specified by:
getStoreDirectory in interface ApplicationContext
Returns:
A reference to the default output directory, or a custom location if configured.
Since:
Version 0.1 2005-10-04

getStorePath

public final java.lang.String getStorePath()
Get the reopsitory file path, if any.

Specified by:
getStorePath in interface ApplicationContext
Returns:
An absolute file path, or null if not found.
Since:
Version 0.2 2005-10-14

getDefaultStoreDirectory

protected abstract java.io.File getDefaultStoreDirectory()
A template method to get a default store directory.

Returns:
A reference to the default output directory.
Since:
Version 0.2 2005-10-14