01: /*
02: * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
03: */
04: package com.tc.object.config.schema;
05:
06: import java.util.Arrays;
07:
08: /**
09: * Represents the <code>application-contexts</code> config element hierarchy
10: */
11: public class AppContext {
12:
13: private final String[] paths;
14: private final String[] distributedEvents;
15: private final SpringContextBean[] beans;
16: private final String rootName;
17: private final boolean locationInfoEnabled;
18:
19: public AppContext(String[] paths, String[] distributedEvents,
20: SpringContextBean[] beans, String rootName,
21: boolean locationInfoEnabled) {
22: this .paths = paths;
23: this .distributedEvents = distributedEvents;
24: this .beans = beans;
25: this .rootName = rootName;
26: this .locationInfoEnabled = locationInfoEnabled;
27: }
28:
29: public String[] paths() {
30: return paths;
31: }
32:
33: public String[] distributedEvents() {
34: return distributedEvents;
35: }
36:
37: public SpringContextBean[] beans() {
38: return beans;
39: }
40:
41: public String rootName() {
42: return rootName;
43: }
44:
45: public boolean locationInfoEnabled() {
46: return locationInfoEnabled;
47: }
48:
49: public String toString() {
50: return "APP-CONTEXT: \nDIST-EVENTS: "
51: + Arrays.asList(distributedEvents) + "\nPATHS\n\n"
52: + Arrays.asList(paths) + "\n" + Arrays.asList(beans);
53: }
54: }
|