|
|
|
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.torweg.pulse.configuration.AbstractConfigBean
public abstract class AbstractConfigBean
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.
| 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 |
|---|
public AbstractConfigBean()
| Method Detail |
|---|
public final long lastModified()
lastModified in interface ConfigBeanConfigBean.lastModified()public final void setLastModified(long t)
setLastModified in interface ConfigBeant - the last modification time in milliseconds since the epochConfigBean.setLastModified(long)protected static final java.lang.Object buildInstance(java.lang.Class<? extends java.lang.Object> c)
c - the class
protected static final java.lang.Class<? extends java.lang.Object> buildClass(java.lang.String name)
name - the class name
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||