KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > jfun > yan > xml > nuts > RefServiceNut


1 package jfun.yan.xml.nuts;
2
3 import jfun.yan.xml.nut.Nut;
4
5 /**
6  * The <refservice> tag used to reference a service.
7  * <p>
8  * @author Ben Yu
9  * Jan 17, 2006 10:30:31 AM
10  */

11 public class RefServiceNut extends Nut {
12   private String JavaDoc to;
13
14   public String JavaDoc getTo() {
15     return to;
16   }
17
18   public void setTo(String JavaDoc to) {
19     this.to = to;
20   }
21   public Object JavaDoc eval(){
22     checkMandatory("to", to);
23     return this.getNutEnvironment().findService(to);
24   }
25 }
26
Popular Tags