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>
|