org.picocontainer.gems.adapters
Class AssimilatingComponentAdapterFactory
java.lang.Object
org.picocontainer.defaults.MonitoringComponentAdapterFactory
org.picocontainer.defaults.DecoratingComponentAdapterFactory
org.picocontainer.gems.adapters.AssimilatingComponentAdapterFactory
- All Implemented Interfaces:
- org.picocontainer.defaults.ComponentAdapterFactory, org.picocontainer.defaults.ComponentMonitorStrategy, Serializable
- public class AssimilatingComponentAdapterFactory
- extends org.picocontainer.defaults.DecoratingComponentAdapterFactory
Factory for the AssimilatingComponentAdapter. This factory will create AssimilatingComponentAdapter
instances for all
ComponentAdapter
instances created by the delegate. This will assimilate every component for a specific type.
- Since:
- 1.2
- Author:
- Jörg Schaible
- See Also:
- Serialized Form
Methods inherited from class org.picocontainer.defaults.MonitoringComponentAdapterFactory |
changeMonitor, currentMonitor |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AssimilatingComponentAdapterFactory
public AssimilatingComponentAdapterFactory(org.picocontainer.defaults.ComponentAdapterFactory delegate,
Class type)
- Construct an AssimilatingComponentAdapterFactory. The instance will use the
StandardProxyFactory
using the JDK
implementation.
- Parameters:
delegate
- The delegated ComponentAdapterFactory
.type
- The assimilated type.
AssimilatingComponentAdapterFactory
public AssimilatingComponentAdapterFactory(org.picocontainer.defaults.ComponentAdapterFactory delegate,
Class type,
ProxyFactory proxyFactory)
- Construct an AssimilatingComponentAdapterFactory using a special
ProxyFactory
.
- Parameters:
delegate
- The delegated ComponentAdapterFactory
.type
- The assimilated type.proxyFactory
- The proxy factory to use.
createComponentAdapter
public org.picocontainer.ComponentAdapter createComponentAdapter(Object componentKey,
Class componentImplementation,
org.picocontainer.Parameter[] parameters)
throws org.picocontainer.PicoIntrospectionException,
org.picocontainer.defaults.AssignabilityRegistrationException,
org.picocontainer.defaults.NotConcreteRegistrationException
- Create a
AssimilatingComponentAdapter
. This adapter will wrap the returned ComponentAdapter
of the
deleated ComponentAdapterFactory
.
- Throws:
org.picocontainer.PicoIntrospectionException
org.picocontainer.defaults.AssignabilityRegistrationException
org.picocontainer.defaults.NotConcreteRegistrationException
- See Also:
DecoratingComponentAdapterFactory.createComponentAdapter(java.lang.Object,
java.lang.Class, org.picocontainer.Parameter[])
Copyright © 2003-2007 Codehaus. All Rights Reserved.