Module hiveutils
Back to master index

[public] Configuration Point hiveutils.ObjectBuilderObjectsOccurs: unbounded
Extension point that defines "objects" to be created by the ObjectBuilder service. Each object can be injected with various dependencies (almost the same as for a HiveMind service). Each contribution defines exactly one such kind of object.
Schema
Element <object>
Attribute cached Translator: boolean
true indicates that each call to get this object from the ObjectBuilder will always return the same object. false means that each call creates a new object. Default is false.
Attribute class (required) Translator: class
The class of the object to instantiate.
Attribute eager-load Translator: boolean
true means that the ObjectBuilder should instantiate this object eagerly (ie, at ObjectBuilder construction time). If true, then the object will be cached whatever the value of "cache" attribute. false means the object will be created only when required. Default is false. Important Note: As of versions 0.4, this attribute has in fact no effect at all and should be considered as being always false.
Attribute name (required) (unique) Translator: string
Unique name of the object to created. This name is used as an object identifier when calling the ObjectBuilder service. Note that object names are NOT module-scoped, so you must be very careful not to define duplicate names.
Nested Elements
<conversion class="net.sourceforge.hiveutils.service.impl.ObjectContribution" >
  • <map attribute="class" property="objectClass" />
</conversion>
Attribute name (required) (unique) Translator: string
Unique name of the object to created. This name is used as an object identifier when calling the ObjectBuilder service. Note that object names are NOT module-scoped, so you must be very careful not to define duplicate names.
Attribute cached Translator: boolean
true indicates that each call to get this object from the ObjectBuilder will always return the same object. false means that each call creates a new object. Default is false.
Attribute eager-load Translator: boolean
true means that the ObjectBuilder should instantiate this object eagerly (ie, at ObjectBuilder construction time). If true, then the object will be cached whatever the value of "cache" attribute. false means the object will be created only when required. Default is false. Important Note: As of versions 0.4, this attribute has in fact no effect at all and should be considered as being always false.
Attribute class (required) Translator: class
The class of the object to instantiate.
Element <inject>
Defines one dependency to inject for this object. If "name" is provided, then setter-injection will be used, else constructor injection will be used.
Attribute name Translator: string
Attribute object (required) Translator: hiveutils-deferred-object
Conversion Rules
<conversion class="net.sourceforge.hiveutils.service.impl.InjectContribution" parent-method="addInjection" />
Element <listener>
Defines one EventListener to add to this object.
Attribute event (required) Translator: string
Attribute object (required) Translator: hiveutils-deferred-object
Conversion Rules
<conversion class="net.sourceforge.hiveutils.service.impl.ListenerContribution" parent-method="addListener" />
Element <inject-arg>
Defines one dependency that needs to be passed by the ObjectBuilder caller (in create() method) that will be injected "as is" to the constructor of the built object, at the same position as the tag
Conversion Rules
<conversion class="net.sourceforge.hiveutils.service.impl.InjectContribution" parent-method="addInjection" />
Conversion Rules
<conversion class="net.sourceforge.hiveutils.service.impl.ObjectContribution" >
  • <map attribute="class" property="objectClass" />
</conversion>

Module hiveutils
Back to master index