org.objectledge.pico.customization
Class CustomizingConstructorComponentAdapter
java.lang.Object
org.picocontainer.defaults.AbstractComponentAdapter
org.picocontainer.defaults.InstantiatingComponentAdapter
org.picocontainer.defaults.ConstructorInjectionComponentAdapter
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
| Fields inherited from class org.picocontainer.defaults.InstantiatingComponentAdapter |
allowNonPublicClasses, parameters, verifyingGuard |
| 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 |
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.
createDefaultParameters
protected org.picocontainer.Parameter[] createDefaultParameters(Class[] parameters)
-
- Overrides:
createDefaultParameters in class org.picocontainer.defaults.InstantiatingComponentAdapter
Copyright © 2003-2006 objectledge.org. All Rights Reserved.