org.objectledge.pico.customization
Class CustomizingConstructorComponentAdapter

java.lang.Object
  extended by org.picocontainer.defaults.AbstractComponentAdapter
      extended by org.picocontainer.defaults.InstantiatingComponentAdapter
          extended by org.picocontainer.defaults.ConstructorInjectionComponentAdapter
              extended by org.objectledge.pico.customization.CustomizingConstructorComponentAdapter
All Implemented Interfaces:
Serializable, org.picocontainer.ComponentAdapter

public class CustomizingConstructorComponentAdapter
extends org.picocontainer.defaults.ConstructorInjectionComponentAdapter

An implementation of CDI ComponentAdapter aware of dependencies using CustomizedComponentAdapter.

Version:
$Id: CustomizingConstructorComponentAdapter.java,v 1.9 2005/02/04 02:28:15 rafal Exp $
Author:
rafal@caltha.pl
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.picocontainer.defaults.InstantiatingComponentAdapter
allowNonPublicClasses, parameters, verifyingGuard
 
Constructor Summary
CustomizingConstructorComponentAdapter(Object componentKey, Class componentImplementation)
          Creates new CustomizingConstructorComponentAdapter instance.
CustomizingConstructorComponentAdapter(Object componentKey, Class componentImplementation, org.picocontainer.Parameter[] parameters)
          Creates new CustomizingConstructorComponentAdapter instance.
CustomizingConstructorComponentAdapter(Object componentKey, Class componentImplementation, org.picocontainer.Parameter[] parameters, boolean allowNonPublicClasses)
          Creates new CustomizingConstructorComponentAdapter instance.
 
Method Summary
protected  org.picocontainer.Parameter[] createDefaultParameters(Class[] parameters)
          
 
Methods inherited from class org.picocontainer.defaults.ConstructorInjectionComponentAdapter
getComponentInstance, getConstructorArguments, getGreediestSatisfiableConstructor
 
Methods inherited from class org.picocontainer.defaults.InstantiatingComponentAdapter
accept, newInstance, verify
 
Methods inherited from class org.picocontainer.defaults.AbstractComponentAdapter
checkTypeCompatibility, getComponentImplementation, getComponentKey, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CustomizingConstructorComponentAdapter

public CustomizingConstructorComponentAdapter(Object componentKey,
                                              Class componentImplementation)
                                       throws org.picocontainer.defaults.AssignabilityRegistrationException,
                                              org.picocontainer.defaults.NotConcreteRegistrationException
Creates new CustomizingConstructorComponentAdapter instance.

Parameters:
componentKey - the component key.
componentImplementation - the component implementation class.
Throws:
org.picocontainer.defaults.AssignabilityRegistrationException - if the component key is a type, and given component implementation is not assignable to it.
org.picocontainer.defaults.NotConcreteRegistrationException - if the given implementation class is not concrete.

CustomizingConstructorComponentAdapter

public CustomizingConstructorComponentAdapter(Object componentKey,
                                              Class componentImplementation,
                                              org.picocontainer.Parameter[] parameters)
Creates new CustomizingConstructorComponentAdapter instance.

Parameters:
componentKey - the component key.
componentImplementation - the component implementation class.
parameters - component parameters.

CustomizingConstructorComponentAdapter

public CustomizingConstructorComponentAdapter(Object componentKey,
                                              Class componentImplementation,
                                              org.picocontainer.Parameter[] parameters,
                                              boolean allowNonPublicClasses)
                                       throws org.picocontainer.defaults.AssignabilityRegistrationException,
                                              org.picocontainer.defaults.NotConcreteRegistrationException
Creates new CustomizingConstructorComponentAdapter instance.

Parameters:
componentKey - the component key.
componentImplementation - the component implementation class.
parameters - component parameters.
allowNonPublicClasses - true to allow instantiating non-public classes.
Throws:
org.picocontainer.defaults.AssignabilityRegistrationException - if the component key is a type, and given component implementation is not assignable to it.
org.picocontainer.defaults.NotConcreteRegistrationException - if the given implementation class is not concrete.
Method Detail

createDefaultParameters

protected org.picocontainer.Parameter[] createDefaultParameters(Class[] parameters)

Overrides:
createDefaultParameters in class org.picocontainer.defaults.InstantiatingComponentAdapter


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