Module hivemind.lib
Back to master index

[public] Service Point hivemind.lib.ServicePropertyFactory Interface: org.apache.hivemind.ServiceImplementationFactory
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 occurs: 1
Parameters Schema
Element <construct>
Attribute property (required) Translator: string
The name of the property of the target service to expose.
Attribute service-id (required) Translator: service
The service which contains the property.
Conversion Rules
<conversion class="impl.ServicePropertyFactoryParameter" >
  • <map attribute="service-id" property="service" />
  • <map attribute="property" property="propertyName" />
</conversion>
Implementation
  • <invoke-factory service-id="hivemind.BuilderFactory" model="singleton" >
    • <construct class="impl.ServicePropertyFactory" >
      • <set-service property="classFactory" service-id="hivemind.ClassFactory" />
      </construct>
    </invoke-factory>

Module hivemind.lib
Back to master index