pulse - the web application framework Get pulse at SourceForge.net. Fast, secure and Free Open Source software downloads Ohloh project report for pulse-java

org.torweg.pulse.configuration
Class AbstractConfigBean

java.lang.Object
  extended by org.torweg.pulse.configuration.AbstractConfigBean
All Implemented Interfaces:
java.io.Serializable, ConfigBean
Direct Known Subclasses:
AbstractBasicContentConfig, AbstractBasicContentEditorConfig, AccessControlEditorConfig, AttributeFactoryConfig, AttributeRegistryEditorConfig, AuthenticationConfig, CaseDrivenRedirectConfig, CMSFormMailerConfig, CMSPageEditorConfig, CommandGeneratorConfig, ContentRegistryEditorConfig, FCKEditorBrowserConfig, FileBrowserConfig, FilterContentDisplayerConfig, FilterContentEditorConfig, FilterEditorConfig, FilterMatchesEditorConfig, FilterRulesEditorConfig, GeoIPLocatorConfig, InitWebsiteAdministrationConfig, MailQueueConfiguration, MimeMap, PoorMansCacheConfiguration, RuleBasedRedirectorConfig, SearchSiteConfiguration, SearchSiteStatisticsConfiguration, ServletConfig, ShoppingCartControllerConfig, SitemapEditorConfig, SitemapMenuConfig, StyleControllerConfig, SubEditorSelectionAttributeConfig, ThemesControllerConfig, ThemesEditorConfig, VFSPermissionEditorConfig, ViewEditorConfig

public abstract class AbstractConfigBean
extends java.lang.Object
implements ConfigBean

abstract base class for ConfigBeans.

ConfigBeans are configurations parsed into JavaBeansTM which are usually managed by the local PoorMansCache (see:PoorMansCache.getConfig(Class), PoorMansCache.getBundleConfig(Class, org.torweg.pulse.bundle.Bundle) ).

The AbstractConfigBean is a basic implementation of the hooks needed by the PoorMansCache and is the recommended base class for all other ConfigBeans.

Version:
$Revision: 1387 $
Author:
Thomas Weber
See Also:
Serialized Form

Constructor Summary
AbstractConfigBean()
           
 
Method Summary
protected static java.lang.Class<? extends java.lang.Object> buildClass(java.lang.String name)
          utility method to get a class object from a given class name.
protected static java.lang.Object buildInstance(java.lang.Class<? extends java.lang.Object> c)
          utility method to instantiate a class.
 long lastModified()
          returns the last modification time of the underlying config file.
 void setLastModified(long t)
          sets or updates the last modification time of the underlying config file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.torweg.pulse.configuration.ConfigBean
init
 

Constructor Detail

AbstractConfigBean

public AbstractConfigBean()
Method Detail

lastModified

public final long lastModified()
returns the last modification time of the underlying config file.

Specified by:
lastModified in interface ConfigBean
Returns:
the last modification time in milliseconds since the epoch
See Also:
ConfigBean.lastModified()

setLastModified

public final void setLastModified(long t)
sets or updates the last modification time of the underlying config file.

Specified by:
setLastModified in interface ConfigBean
Parameters:
t - the last modification time in milliseconds since the epoch
See Also:
ConfigBean.setLastModified(long)

buildInstance

protected static final java.lang.Object buildInstance(java.lang.Class<? extends java.lang.Object> c)
utility method to instantiate a class.

Parameters:
c - the class
Returns:
the instance

buildClass

protected static final java.lang.Class<? extends java.lang.Object> buildClass(java.lang.String name)
utility method to get a class object from a given class name.

Parameters:
name - the class name
Returns:
the class object