org.objectledge.pico.customization
Interface CustomizedComponentProvider

All Known Implementing Classes:
CustomizedConfigurationProvider, LoggerFactory

public interface CustomizedComponentProvider

Provides customized component adapters, based on requesting component's key and implementation class.

Version:
$Id: CustomizedComponentProvider.java,v 1.10 2005/02/04 02:28:15 rafal Exp $
Author:
rafal@caltha.pl

Method Summary
 Class getCustomizedComponentImplementation()
          Returns the type of the customized components.
 Object getCustomizedComponentInstance(org.picocontainer.PicoContainer container, Object componentKey, Class componentImplementaion)
          Returns a customized component instance.
 void verify(org.picocontainer.PicoContainer container)
          Verifies if the customized component can be instantiated using the dependencies present in the associated container.
 

Method Detail

getCustomizedComponentInstance

Object getCustomizedComponentInstance(org.picocontainer.PicoContainer container,
                                      Object componentKey,
                                      Class componentImplementaion)
                                      throws org.picocontainer.PicoInitializationException,
                                             org.picocontainer.PicoIntrospectionException,
                                             UnsupportedKeyTypeException
Returns a customized component instance.

Parameters:
container - the container.
componentKey - requesting component's key.
componentImplementaion - requesting component's implmenetation class.
Returns:
customized component.
Throws:
org.picocontainer.PicoInitializationException - if the customized component cannot be initialized.
org.picocontainer.PicoIntrospectionException - if the customized component cannot be initialized.
UnsupportedKeyTypeException - if the componentKey has unsupported type.

getCustomizedComponentImplementation

Class getCustomizedComponentImplementation()
Returns the type of the customized components.

Returns:
the type of the customized components.

verify

void verify(org.picocontainer.PicoContainer container)
            throws org.picocontainer.PicoVerificationException
Verifies if the customized component can be instantiated using the dependencies present in the associated container.

Parameters:
container - the container.
Throws:
org.picocontainer.PicoVerificationException - if the container does not contain required dependencies.


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