1
2
3
4
5
6
7
8
9
10
11 package org.mule.extras.spring.events;
12
13 import org.mule.tck.testmodels.fruit.Apple;
14 import org.mule.tck.testmodels.mule.TestConnector;
15 import org.mule.umo.lifecycle.InitialisationException;
16
17 public class TestConnectorWithContainerDependents extends TestConnector
18 {
19 private Apple containerProp;
20
21
22
23
24
25
26 protected void doInitialise() throws InitialisationException
27 {
28 super.doInitialise();
29 if (containerProp == null)
30 {
31 throw new IllegalStateException(
32 "Initialise should not be called before all properties have been set");
33 }
34
35 }
36
37 public Apple getContainerProp()
38 {
39 return containerProp;
40 }
41
42 public void setContainerProp(Apple containerProp)
43 {
44 this.containerProp = containerProp;
45 }
46
47 }