1 |
| |
2 |
| |
3 |
| |
4 |
| |
5 |
| |
6 |
| |
7 |
| |
8 |
| |
9 |
| |
10 |
| package org.picocontainer.defaults; |
11 |
| |
12 |
| import org.picocontainer.ComponentAdapter; |
13 |
| import org.picocontainer.Parameter; |
14 |
| import org.picocontainer.PicoIntrospectionException; |
15 |
| |
16 |
| import java.io.Serializable; |
17 |
| |
18 |
| public class DecoratingComponentAdapterFactory implements ComponentAdapterFactory, Serializable { |
19 |
| private ComponentAdapterFactory delegate; |
20 |
| |
21 |
402
| public DecoratingComponentAdapterFactory(ComponentAdapterFactory delegate) {
|
22 |
402
| this.delegate = delegate;
|
23 |
| } |
24 |
| |
25 |
336
| public ComponentAdapter createComponentAdapter(Object componentKey,
|
26 |
| Class componentImplementation, |
27 |
| Parameter[] parameters) throws PicoIntrospectionException, AssignabilityRegistrationException, NotConcreteRegistrationException { |
28 |
336
| return delegate.createComponentAdapter(componentKey, componentImplementation, parameters);
|
29 |
| } |
30 |
| } |