1   
2   
3   
4   
5   
6   
7   
8   
9   
10  
11  
12  
13  package org.abstracthorizon.danube.service;
14  
15  import org.abstracthorizon.pasulj.PasuljInfo;
16  
17  
18  
19  
20  
21  
22  public class ServiceBeanInfo extends PasuljInfo {
23  
24      
25  
26  
27      public ServiceBeanInfo() {
28          this(Service.class);
29      }
30  
31      
32  
33  
34  
35      protected ServiceBeanInfo(Class<?> cls) {
36          super(cls);
37      }
38  
39      
40  
41  
42      public void init() {
43          addProperty("name", "Name of the service");
44          addProperty("state", "State of the service", true, false);
45          addProperty("stateName", "State of the service");
46  
47          addMethod("create", "Creates the service", true, false);
48          addMethod("start", "Starts the service", true, false);
49          addMethod("stop", "Stops the service", true, false);
50          addMethod("destroy", "Destroys the service", true, false);
51  
52      }
53  }