1 |
| |
2 |
| |
3 |
| |
4 |
| |
5 |
| |
6 |
| |
7 |
| |
8 |
| |
9 |
| |
10 |
| |
11 |
| package org.picocontainer.defaults; |
12 |
| |
13 |
| import org.picocontainer.ComponentAdapter; |
14 |
| import org.picocontainer.Parameter; |
15 |
| import org.picocontainer.PicoIntrospectionException; |
16 |
| |
17 |
| |
18 |
| |
19 |
| |
20 |
| |
21 |
| |
22 |
| public class CachingComponentAdapterFactory extends DecoratingComponentAdapterFactory { |
23 |
0
| public CachingComponentAdapterFactory() {
|
24 |
0
| this(null);
|
25 |
| } |
26 |
| |
27 |
296
| public CachingComponentAdapterFactory(ComponentAdapterFactory delegate) {
|
28 |
296
| super(delegate);
|
29 |
| } |
30 |
| |
31 |
238
| public ComponentAdapter createComponentAdapter(Object componentKey, Class componentImplementation, Parameter[] parameters)
|
32 |
| throws PicoIntrospectionException, AssignabilityRegistrationException, NotConcreteRegistrationException { |
33 |
238
| return new CachingComponentAdapter(super.createComponentAdapter(componentKey, componentImplementation, parameters));
|
34 |
| |
35 |
| } |
36 |
| } |