1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
package org.mule.module.launcher.descriptor; |
12 | |
|
13 | |
import java.util.HashMap; |
14 | |
import java.util.Map; |
15 | |
|
16 | |
|
17 | 0 | public class ApplicationDescriptor |
18 | |
{ |
19 | |
public static final String DEFAULT_CONFIGURATION_RESOURCE = "mule-config.xml"; |
20 | |
public static final String DEFAULT_APP_PROPERTIES_RESOURCE = "mule-app.properties"; |
21 | |
|
22 | |
|
23 | |
|
24 | |
|
25 | |
|
26 | |
public static final String CLASSNAME_SPRING_CONFIG_BUILDER = "org.mule.config.spring.SpringXmlConfigurationBuilder"; |
27 | |
|
28 | |
|
29 | |
private String appName; |
30 | |
private String encoding; |
31 | |
private String configurationBuilder; |
32 | |
private String domain; |
33 | 0 | private boolean parentFirstClassLoader = true; |
34 | 0 | private String[] configResources = new String[] {DEFAULT_CONFIGURATION_RESOURCE}; |
35 | 0 | private Map<String, String> appProperties = new HashMap<String, String>(); |
36 | |
|
37 | 0 | private boolean redeploymentEnabled = true; |
38 | |
|
39 | 0 | private boolean priviledged = false; |
40 | |
|
41 | |
public String getAppName() |
42 | |
{ |
43 | 0 | return appName; |
44 | |
} |
45 | |
|
46 | |
public void setAppName(String appName) |
47 | |
{ |
48 | 0 | this.appName = appName; |
49 | 0 | } |
50 | |
|
51 | |
public String getEncoding() |
52 | |
{ |
53 | 0 | return encoding; |
54 | |
} |
55 | |
|
56 | |
public void setEncoding(String encoding) |
57 | |
{ |
58 | 0 | this.encoding = encoding; |
59 | 0 | } |
60 | |
|
61 | |
public Map<String, String> getAppProperties() |
62 | |
{ |
63 | 0 | return appProperties; |
64 | |
} |
65 | |
|
66 | |
public void setAppProperties(Map<String, String> appProperties) |
67 | |
{ |
68 | 0 | this.appProperties = appProperties; |
69 | 0 | } |
70 | |
|
71 | |
|
72 | |
|
73 | |
|
74 | |
|
75 | |
|
76 | |
|
77 | |
public String getConfigurationBuilder() |
78 | |
{ |
79 | 0 | return configurationBuilder; |
80 | |
} |
81 | |
|
82 | |
public void setConfigurationBuilder(String configurationBuilder) |
83 | |
{ |
84 | 0 | this.configurationBuilder = configurationBuilder; |
85 | 0 | } |
86 | |
|
87 | |
|
88 | |
public String getDomain() |
89 | |
{ |
90 | 0 | return domain; |
91 | |
} |
92 | |
|
93 | |
public void setDomain(String domain) |
94 | |
{ |
95 | 0 | this.domain = domain; |
96 | 0 | } |
97 | |
|
98 | |
|
99 | |
|
100 | |
|
101 | |
|
102 | |
|
103 | |
public boolean isParentFirstClassLoader() |
104 | |
{ |
105 | 0 | return parentFirstClassLoader; |
106 | |
} |
107 | |
|
108 | |
public void setParentFirstClassLoader(boolean parentFirstClassLoader) |
109 | |
{ |
110 | 0 | this.parentFirstClassLoader = parentFirstClassLoader; |
111 | 0 | } |
112 | |
|
113 | |
public String[] getConfigResources() |
114 | |
{ |
115 | 0 | return configResources; |
116 | |
} |
117 | |
|
118 | |
public void setConfigResources(String[] configResources) |
119 | |
{ |
120 | 0 | this.configResources = configResources; |
121 | 0 | } |
122 | |
|
123 | |
public boolean isRedeploymentEnabled() |
124 | |
{ |
125 | 0 | return redeploymentEnabled; |
126 | |
} |
127 | |
|
128 | |
public void setRedeploymentEnabled(boolean redeploymentEnabled) |
129 | |
{ |
130 | 0 | this.redeploymentEnabled = redeploymentEnabled; |
131 | 0 | } |
132 | |
|
133 | |
public boolean isPriviledged() |
134 | |
{ |
135 | 0 | return priviledged; |
136 | |
} |
137 | |
|
138 | |
public void setPriviledged(boolean priviledged) |
139 | |
{ |
140 | 0 | this.priviledged = priviledged; |
141 | 0 | } |
142 | |
} |