|
|||||||||||||||||||
30 day Evaluation Version distributed via the Maven Jar Repository. Clover is not free. You have 30 days to evaluate it. Please visit http://www.thecortex.net/clover to obtain a licensed version of Clover | |||||||||||||||||||
Source file | Conditionals | Statements | Methods | TOTAL | |||||||||||||||
DecoratingComponentAdapter.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 Jon Tirsen *
|
|
9 |
*****************************************************************************/
|
|
10 |
|
|
11 |
package org.picocontainer.defaults;
|
|
12 |
|
|
13 |
import org.picocontainer.ComponentAdapter;
|
|
14 |
import org.picocontainer.PicoContainer;
|
|
15 |
import org.picocontainer.PicoInitializationException;
|
|
16 |
import org.picocontainer.PicoIntrospectionException;
|
|
17 |
|
|
18 |
import java.io.Serializable;
|
|
19 |
|
|
20 |
/**
|
|
21 |
* @author Jon Tirsen (tirsen@codehaus.org)
|
|
22 |
* @author Aslak Hellesoy
|
|
23 |
* @version $Revision: 1.4 $
|
|
24 |
*/
|
|
25 |
public class DecoratingComponentAdapter implements ComponentAdapter, Serializable { |
|
26 |
|
|
27 |
private ComponentAdapter delegate;
|
|
28 |
|
|
29 | 234 |
public DecoratingComponentAdapter(ComponentAdapter delegate) {
|
30 | 234 |
this.delegate = delegate;
|
31 |
} |
|
32 |
|
|
33 | 372 |
public Object getComponentKey() {
|
34 | 372 |
return delegate.getComponentKey();
|
35 |
} |
|
36 |
|
|
37 | 605 |
public Class getComponentImplementation() {
|
38 | 605 |
return delegate.getComponentImplementation();
|
39 |
} |
|
40 |
|
|
41 | 183 |
public Object getComponentInstance() throws PicoInitializationException, PicoIntrospectionException, AssignabilityRegistrationException, NotConcreteRegistrationException { |
42 | 183 |
return delegate.getComponentInstance();
|
43 |
} |
|
44 |
|
|
45 | 13 |
public void verify() { |
46 | 13 |
delegate.verify(); |
47 |
} |
|
48 |
|
|
49 | 10 |
public PicoContainer getContainer() {
|
50 | 10 |
return delegate.getContainer();
|
51 |
} |
|
52 |
|
|
53 | 1 |
public ComponentAdapter getDelegate() {
|
54 | 1 |
return delegate;
|
55 |
} |
|
56 |
|
|
57 | 216 |
public void setContainer(PicoContainer picoContainer) { |
58 | 216 |
delegate.setContainer(picoContainer); |
59 |
} |
|
60 |
} |
|
61 |
|
|