blob: aa99c51ebc3a01837aa43987ed7afd81c04e78f4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
package JACE.ServiceConfigurator;
import java.io.*;
import JACE.OS.*;
class AddServiceObjectNode extends ParseNode
{
public AddServiceObjectNode ()
{
this.locator_ = new String();
this.params_ = new String();
}
/* This should be the class name, fully qualified or in the class path */
public String locator ()
{
return this.locator_;
}
public String params ()
{
return this.params_;
}
public void params (String params)
{
this.params_ = params;
}
public boolean suspended ()
{
return this.suspended_;
}
public void init(String name, String locator, boolean suspended)
{
super.name_ = name;
this.locator_ = locator;
this.suspended_ = suspended;
}
public void apply ()
{
ACE.DEBUG("AddServiceObjectNode apply");
if (JACE.ServiceConfigurator.ServiceConfig.initialize(this) == -1)
ACE.ERROR("Error adding " + this.name_);
}
String params_;
String locator_;
boolean suspended_;
};
|