1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
package org.mule.tck.testmodels.fruit; |
12 | |
|
13 | |
import org.springframework.beans.factory.FactoryBean; |
14 | |
|
15 | |
|
16 | |
|
17 | |
|
18 | 0 | public class FloridaSunnyOrangeFactoryBean implements FactoryBean |
19 | |
{ |
20 | 0 | Integer segments = new Integer(10); |
21 | 0 | Double radius = new Double(4.34); |
22 | |
|
23 | |
public Object getObject() throws Exception |
24 | |
{ |
25 | 0 | return new Orange(segments, radius, "Florida Sunny"); |
26 | |
} |
27 | |
|
28 | |
public Class getObjectType() |
29 | |
{ |
30 | 0 | return Orange.class; |
31 | |
} |
32 | |
|
33 | |
public boolean isSingleton() |
34 | |
{ |
35 | 0 | return false; |
36 | |
} |
37 | |
|
38 | |
public Double getRadius() |
39 | |
{ |
40 | 0 | return radius; |
41 | |
} |
42 | |
|
43 | |
public void setRadius(Double radius) |
44 | |
{ |
45 | 0 | this.radius = radius; |
46 | 0 | } |
47 | |
|
48 | |
public Integer getSegments() |
49 | |
{ |
50 | 0 | return segments; |
51 | |
} |
52 | |
|
53 | |
public void setSegments(Integer segments) |
54 | |
{ |
55 | 0 | this.segments = segments; |
56 | 0 | } |
57 | |
} |