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
class="
net.sourceforge.hiveutils.service.impl.ObjectContribution"
>
-
<map attribute="class"
property="objectClass"
/>
</conversion>