|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Computes an adaptation value when this value is not persisted by EBX.Platform.
The specific function must be declared under the element
xs:annotation/xs:appinfo
(see Computed Values):
where<osd:function class="com.foo.MyFunction"/>
com.foo.MyFunction is the fully qualified name of the class implementing
this interface. It is also possible to set additional JavaBean properties:
where<osd:function class="com.foo.MyFunction"> <param1>...</param1> <param2>...</param2> </osd:function>
param1 and param2 are JavaBean properties of the class specified.
For more information, read JavaBeans specification.
setParam1(...) and
setParam2(...));setup(ValueFunctionContext) is called on the new instance.getValue(Adaptation)
is called each time this is needed (for example when the adaptation is
displayed or exported).
See getValue(Adaptation).
| Method Summary | |
Object |
getValue(Adaptation anAdaptation)
Returns the value in the context of the specified adaptation. |
void |
setup(ValueFunctionContext aContext)
This method is called when the schema is loaded, for checking the consistency of this function regarding the schema that defines it. |
| Method Detail |
public Object getValue(Adaptation anAdaptation)
The value returned must be in conformity with the associated schema declaration (type, cardinality, facets).
If the function is attached to a table with N occurrences, some operations will call this method N times. This is the case for:
ExportSpec.setIncludesComputedValues(boolean)
will deactivate the call to the function);For a single instance of this interface, this method may be called concurrently by several threads.
public void setup(ValueFunctionContext aContext)
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
(report a bug)
EBX.Platform 4.8.4 [0722]
Copyright Orchestra Networks 2000-2010. All rights reserved.