1 package org.smartcomps.twister.common.configuration;
2
3 import java.util.List;
4
5 /***
6 * A specific configuration file returning properties needed by the LifecycleManager.
7 * @see org.smartcomps.twister.common.lifecycle.LifecycleManager
8 */
9 public class CommonConfiguration extends XMLConfigurationReader {
10
11 private static final String LIFECYCLE_RESOURCES_PATH = "//twister/lifecycle/resource";
12 private static final String EVENT_LISTENER_CLASS = "//twister/event-listeners/listener";
13 private static final String TX_RESOURCES_CLASS = "//twister/transaction/resource";
14 private static final String XINDICE_URL = "//twister/tools/xindice/url";
15
16 public static List getLifecycleResources() {
17 return getNodeValues(LIFECYCLE_RESOURCES_PATH);
18 }
19
20 public static List getEventListeners() {
21 return getNodeValues(EVENT_LISTENER_CLASS);
22 }
23
24 public static List getTransactionResources() {
25 return getNodeValues(TX_RESOURCES_CLASS);
26 }
27
28 public static String getXindiceURL() {
29 return getNodeValue(XINDICE_URL);
30 }
31 }
This page was automatically generated by Maven