Component customization

Description

This mechanism introduces a concept of customized (polymorphic) components. When a customized component is requested during instantiation of a target component, a provider class is asked for an actual object instance, depending on the target component's key and implementation class.

To use this mechanism, you need to use CustmomizingConstructorComponentAdapter instead of ConstructorComponentAdapter for instantiating your compoments. Additionally you need to register CustomizedComponentAdapter for each of the components you want polymorphic, using apropriate CustomizedComponentProvider objects.

Browse