2009/04/15 - Apache HiveMind has been retired.

For more information, please explore the Attic.

Jakarta > HiveMind
Font size:      

hivemind.lib.ServicePropertyFactory Service

The ServicePropertyFactory exposes a property of a service as a new service. The property's type must the same as (or assignable to) the service interface.

On each invocation of a service method, the property is re-acquired from the property source service, and the method reinvoked on the active value. This is useful when the value of the property can change at different times ... by using this factory, and not the service-property object provider, your code will always access the current value.

This can invaluable when a small number of services use the threaded or pooled service models. Other services can access information in those services transparently, without themselves having to be threaded or pooled.

A single parameter element is expected:

<construct service-id="..." property="..."/>      

Both attributes are required.