|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.serotonin.m2m2.module.ModuleElementDefinition
com.serotonin.m2m2.module.DwrConversionDefinition
public abstract class DwrConversionDefinition
A DWR conversion definition determines how Java objects will be converted to Javascript objects and vice versa. Most conversions is done by a "bean" converter (using get/is and set methods), and this is typically sufficient for nearly all purposes. By default classes are not allowed to be converted, so any classes that should be allowed need to be explicitly declared.
Constructor Summary | |
---|---|
DwrConversionDefinition()
|
Method Summary | |
---|---|
void |
addConversion(java.lang.Class<?> clazz)
Declares that objects of the given class are allowed to be converted using a bean converter. |
void |
addConversion(java.lang.Class<?> clazz,
java.lang.String converterType)
Declares that objects of the given class are allowed to be converted using the given converter type. |
abstract void |
addConversions()
|
void |
addConversionWithExclusions(java.lang.Class<?> clazz,
java.lang.String exclusions)
Declares that objects of the given class are allowed to be converted using a bean converter. |
void |
addConversionWithInclusions(java.lang.Class<?> clazz,
java.lang.String inclusions)
Declares that objects of the given class are allowed to be converted using a bean converter. |
java.util.List<com.serotonin.m2m2.web.dwr.util.DwrClassConversion> |
getConversions()
|
void |
initialize()
|
Methods inherited from class com.serotonin.m2m2.module.ModuleElementDefinition |
---|
getModule, uninstall |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DwrConversionDefinition()
Method Detail |
---|
public void initialize()
initialize
in class ModuleElementDefinition
public abstract void addConversions()
public void addConversion(java.lang.Class<?> clazz)
clazz
- the class to allowpublic void addConversion(java.lang.Class<?> clazz, java.lang.String converterType)
clazz
- the class to allowconverterType
- the converter type with which to convertpublic void addConversionWithInclusions(java.lang.Class<?> clazz, java.lang.String inclusions)
clazz
- the class to allowinclusions
- a comma-delimited list of properties to convertpublic void addConversionWithExclusions(java.lang.Class<?> clazz, java.lang.String exclusions)
clazz
- the class to allowexclusions
- a comma-delimited list of properties to excludepublic java.util.List<com.serotonin.m2m2.web.dwr.util.DwrClassConversion> getConversions()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |