|
||||||||||
| PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES | |||||||||
See:
Description
| Interface Summary | |
|---|---|
| CustomizedComponentProvider | Provides customized component adapters, based on requesting component's key and implementation class. |
| Class Summary | |
|---|---|
| CustomizedComponentAdapter | An adapter for a component that is customized on behalf of a component that is asking for it. |
| CustomizingComponentParameter | |
| CustomizingConstructorComponentAdapter | An implementation of CDI ComponentAdapter aware of dependencies using CustomizedComponentAdapter. |
| CustomizingConstructorComponentAdapterFactory | A factory of CustomizingConstructorComponentAdapters. |
| Exception Summary | |
|---|---|
| UnsupportedKeyTypeException | Thrown by the CustomizedComponentProvider to indicate it's unable to handle a specific component key type. |
The component customization 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.
|
||||||||||
| PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES | |||||||||