01 package net.sf.annocon.examples.autowiring;
02
03 /**
04 * Example class whose properties are wired by name.
05 *
06 * @author Achim Huegen
07 */
08 public class ActionCaller
09 {
10 private Runnable _printAction;
11 private Runnable _startAction;
12
13 public Runnable getPrintAction()
14 {
15 return _printAction;
16 }
17
18 public void setPrintAction(Runnable printAction)
19 {
20 _printAction = printAction;
21 }
22
23 public Runnable getStartAction()
24 {
25 return _startAction;
26 }
27
28 public void setStartAction(Runnable startAction)
29 {
30 _startAction = startAction;
31 }
32 }
|