Back to index
Back to module hivemind.lib

Service hivemind.lib.ServicePropertyFactory

Interfaceorg.apache.hivemind.ServiceImplementationFactory
Parameters Occursrequired
Creates a service that dynamically (i.e., on each service method invocation) obtains a property from another service and forwards the invocation to the property. The property must be the same type (or assignable to) the constructed service's interface. Typically, the targeted service uses a threaded (or similar) service model, thus requiring dynamic, rather than static, access.

Parameters Schema

Element construct
Attribute service-id Required
Translatorservice
The service which contains the property.
Attribute property Required
The name of the property of the target service to expose.

Conversion Rules

  • <conversion class="org.apache.hivemind.lib.impl.ServicePropertyFactoryParameter" >
    • <map attribute="service-id" property="service" />
    • <map attribute="property" property="propertyName" />
    </conversion>

Implementation


Back to index
Back to module hivemind.lib