KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tc > object > config > schema > AppContext


1 /*
2  * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
3  */

4 package com.tc.object.config.schema;
5
6 import java.util.Arrays JavaDoc;
7
8 /**
9  * Represents the <code>application-contexts</code> config element hierarchy
10  */

11 public class AppContext {
12
13   private final String JavaDoc[] paths;
14   private final String JavaDoc[] distributedEvents;
15   private final SpringContextBean[] beans;
16   private final String JavaDoc rootName;
17   private final boolean locationInfoEnabled;
18
19   public AppContext(String JavaDoc[] paths, String JavaDoc[] distributedEvents, SpringContextBean[] beans, String JavaDoc rootName,
20                     boolean locationInfoEnabled) {
21     this.paths = paths;
22     this.distributedEvents = distributedEvents;
23     this.beans = beans;
24     this.rootName = rootName;
25     this.locationInfoEnabled = locationInfoEnabled;
26   }
27
28   public String JavaDoc[] paths() {
29     return paths;
30   }
31
32   public String JavaDoc[] distributedEvents() {
33     return distributedEvents;
34   }
35
36   public SpringContextBean[] beans() {
37     return beans;
38   }
39
40   public String JavaDoc rootName() {
41     return rootName;
42   }
43   
44   public boolean locationInfoEnabled() {
45     return locationInfoEnabled;
46   }
47   
48   public String JavaDoc toString() {
49     return "APP-CONTEXT: \nDIST-EVENTS: " + Arrays.asList(distributedEvents) + "\nPATHS\n\n" + Arrays.asList(paths)
50         + "\n" + Arrays.asList(beans);
51   }
52 }
53
Popular Tags