Back to index
Back to module hivemind.lib

Service hivemind.lib.BeanFactoryBuilder

Interfaceorg.apache.hivemind.ServiceImplementationFactory
Parameters Occursrequired
Visibility Public
A service which builds Object Factories. Factories are driven by a configuration that conforms to the hivemind.lib.BeanFactoryContribution schema.

Parameters Schema

Element factory
Attribute configuration-id Required
Translatorconfiguration
The configuration containing the contributions that define what classes are actually vended. The configuration must use the hivemind.lib.BeanFactoryContribution schema.
Attribute default-cacheable Optional
Translatorboolean
The default value for cacheable for any contributions that are not more specific. The default value is true.
Attribute vend-class Optional
Translatorclass
The class (or interface) vended by this factory. Contributions must be assignable to this type, or will be ignored. The default value is java.lang.Object.

Conversion Rules

  • <conversion class="org.apache.hivemind.lib.factory.BeanFactoryParameter" >
    • <map attribute="configuration-id" property="contributions" />
    </conversion>

Implementation


Back to index
Back to module hivemind.lib