|
|||||||||||||||||||
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 | |||||||||||||||
ConstantParameter.java | - | 100% | 100% | 100% |
|
1 |
package picocontainer.defaults;
|
|
2 |
|
|
3 |
import picocontainer.PicoContainer;
|
|
4 |
import picocontainer.PicoInstantiationException;
|
|
5 |
|
|
6 |
/**
|
|
7 |
* @author Jon Tirsen (tirsen@codehaus.org)
|
|
8 |
* @version $Revision: 1.1 $
|
|
9 |
*/
|
|
10 |
public class ConstantParameter implements Parameter { |
|
11 |
private Object arg;
|
|
12 |
|
|
13 | 9 |
ConstantParameter(Object parameter) { |
14 | 9 |
this.arg = parameter;
|
15 |
} |
|
16 |
|
|
17 | 9 |
public Object resolve(PicoContainer picoContainer, ComponentSpecification compSpec, Class targetType) throws PicoInstantiationException { |
18 | 9 |
return arg;
|
19 |
} |
|
20 |
} |
|
21 |
|
|