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