2009/04/15 - Apache HiveMind has been retired.

For more information, please explore the Attic.

Module hivemind.lib
Back to master index

[public] Service Point hivemind.lib.StrategyFactory Interface: org.apache.hivemind.ServiceImplementationFactory
Creates a service as a wrapper around a StrategyRegistry. The first parameter to each method of the service interface is used to select a strategy instance, and then the method implementation delegates to that instance.
Parameters occurs: 1
Parameters Schema
Element <construct>
Attribute configuration-id (required) Translator: configuration
A configuration utilizing the hivemind.lib.StrategyRegistry schema, which defines the classes and matching strategies.
Conversion Rules
<conversion class="strategy.StrategyParameter" >
  • <map attribute="configuration-id" property="contributions" />
</conversion>
Implementation
  • <invoke-factory service-id="hivemind.BuilderFactory" model="singleton" >
    • <construct class="strategy.StrategyFactory" >
      • <set-service property="classFactory" service-id="hivemind.ClassFactory" />
      </construct>
    </invoke-factory>

Module hivemind.lib
Back to master index