Package org.objectledge.pico.customization

The component customization mechanism introduces a concept of customized (polymorphic) components.

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.
 

Package org.objectledge.pico.customization Description

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.



Copyright © 2003-2006 objectledge.org. All Rights Reserved.