net.sourceforge.jparam
Class ConstantRegistry
java.lang.Object
|
+--net.sourceforge.jparam.ConstantRegistry
- public class ConstantRegistry
- extends java.lang.Object
The constant registry, here all the constant mapping are saved and
dereferenced
- Author:
- ron_sidi
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getInstance
public static ConstantRegistry getInstance()
getConstant
public java.lang.Object getConstant(java.lang.String name)
isConstant
public boolean isConstant(java.lang.String name)
registerConstant
public void registerConstant(java.lang.String name,
java.lang.Object value)
clearSingleton
public static void clearSingleton()
registerHelperClass
public void registerHelperClass(java.lang.Class helperClass)
- Register all constants defined in the given helper class, a field is
considered a valid constant if the following apply:
- the field is
static
- the field is
final
The field name is used as the constant name in JParam and the field
static value is defined as the value to replace with
- Parameters:
helperClass
-
Copyright © 2004 SourceForge. All Rights Reserved.