|
|||||||||||||||||||
Source file | Conditionals | Statements | Methods | TOTAL | |||||||||||||||
SynchronizedComponentAdapterFactory.java | - | 100% | 100% | 100% |
|
1 | /***************************************************************************** | |
2 | * Copyright (C) PicoContainer Organization. All rights reserved. * | |
3 | * ------------------------------------------------------------------------- * | |
4 | * The software in this package is published under the terms of the BSD * | |
5 | * style license a copy of which has been included with this distribution in * | |
6 | * the LICENSE.txt file. * | |
7 | * * | |
8 | * Original code by * | |
9 | *****************************************************************************/ | |
10 | package org.picocontainer.defaults; | |
11 | ||
12 | import org.picocontainer.ComponentAdapter; | |
13 | import org.picocontainer.Parameter; | |
14 | ||
15 | /** | |
16 | * @author Aslak Hellesøy | |
17 | * @version $Revision: 1272 $ | |
18 | */ | |
19 | public class SynchronizedComponentAdapterFactory extends DecoratingComponentAdapterFactory { | |
20 | 4 | public SynchronizedComponentAdapterFactory(ComponentAdapterFactory delegate) { |
21 | 4 | super(delegate); |
22 | } | |
23 | ||
24 | 8 | public ComponentAdapter createComponentAdapter(Object componentKey, Class componentImplementation, Parameter[] parameters) { |
25 | 8 | return new SynchronizedComponentAdapter(super.createComponentAdapter(componentKey, componentImplementation, parameters)); |
26 | } | |
27 | } |
|