org.omg.CosTradingDynamic
Interface DynamicPropEvalOperations

All Known Subinterfaces:
DynamicPropEval
All Known Implementing Classes:
_DynamicPropEvalStub, DynamicPropEvalPOA, DynamicPropEvalPOATie

public interface DynamicPropEvalOperations

The DynamicPropEval interface is provided by an exporter who wishes to provide a dynamic property value in a service offer held by the trader. When exporting a service offer (or proxy offer), the property with the dynamic value has an any value which contains a DynamicProp structure rather than the normal property value. A trader which supports dynamic properties accepts this DynamicProp value as containing the information which enables a correctly-typed property value to be obtained during the evaluation of a query. The export (or export_proxy) operation raises the PropertyTypeMismatch if the returned_type is not appropriate for the property name as defined by the service type.


Method Summary
 org.omg.CORBA.Any evalDP(java.lang.String name, org.omg.CORBA.TypeCode returned_type, org.omg.CORBA.Any extra_info)
          When a query requires a dynamic property value, the evalDP operation is invoked on the eval_if interface in the DynamicProp structure.
 

Method Detail

evalDP

org.omg.CORBA.Any evalDP(java.lang.String name,
                         org.omg.CORBA.TypeCode returned_type,
                         org.omg.CORBA.Any extra_info)
                         throws DPEvalFailure
When a query requires a dynamic property value, the evalDP operation is invoked on the eval_if interface in the DynamicProp structure. The property name parameter is the name of the property whose value is being obtained. The returned_type and extra_info parameters are copied from the DynamicProp structure. The evalDP operation returns an any value which should contain a value for that property. The value should be of a type indicated by returned_type. The DPEvalFailure exception is raised if the value for the property cannot be determined. If the value is required for the evaluation of a constraint or preference, then that evaluation is deemed to have failed on that service offer (or proxy offer).

Throws:
DPEvalFailure