Back to index
Back to module hivemind.lib

Schema hivemind.lib.BeanFactoryContribution

Schema used with the hivemind.lib.BeanFactoryBuilder service, to define configuration that accepts definitions of classes that may be vended by the generated BeanFactory.
Element bean
Define one class of bean that may be vended. Beans must have either a public constructor that takes no arguments, or a public constructor that takes a single string argument (or both).
Attribute name Required
A unique name for the bean.
Attribute class Required
Translatorclass
The bean class that will be instantiated by the factory.
Attribute cacheable Optional
Translatorboolean
Defines whether instances of the bean may be cached; the default is specified by the factory.

Conversion Rules

  • <conversion class="org.apache.hivemind.lib.factory.BeanFactoryContribution" >
    • <map attribute="class" property="beanClass" />
    </conversion>

Back to index
Back to module hivemind.lib