KickJava   Java API By Example, From Geeks To Geeks.

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


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
7 import java.util.Arrays JavaDoc;
8
9 /**
10  * Represents the <code>spring</code> config element hierarchy
11  */

12 public class SpringApp {
13
14   private boolean sessionSupport;
15   private Lock[] locks;
16   private InstrumentedClass[] includes;
17   private AppContext[] appContexts;
18   private String JavaDoc name;
19   private boolean fastProxy;
20   private String JavaDoc[] transientFields;
21
22   public SpringApp(boolean sessionSupport, Lock[] locks, InstrumentedClass[] includes, AppContext[] appContexts,
23       String JavaDoc name, boolean fastProxy, String JavaDoc[] transientFields) {
24
25     this.sessionSupport = sessionSupport;
26     this.locks = locks;
27     this.includes = includes;
28     this.appContexts = appContexts;
29     this.name = name;
30     this.fastProxy = fastProxy;
31     this.transientFields = transientFields;
32   }
33
34   public boolean sessionSupport() {
35     return sessionSupport;
36   }
37
38   public Lock[] locks() {
39     return locks;
40   }
41
42   public InstrumentedClass[] includes() {
43     return includes;
44   }
45
46   public AppContext[] appContexts() {
47     return appContexts;
48   }
49
50   public String JavaDoc name() {
51     return name;
52   }
53   
54   public boolean fastProxy() {
55     return fastProxy;
56   }
57   
58   public String JavaDoc[] transientFields() {
59     return transientFields;
60   }
61
62   public String JavaDoc toString() {
63     return "SPRING: " + name + "\nSESSION: " + sessionSupport + "\nLOCKS:\n\n" + Arrays.asList(locks)
64         + "\nINCLUDES:\n\n" + Arrays.asList(includes) + "\n" + Arrays.asList(appContexts) + "\nFASTPROXY: " + fastProxy
65         + "\nTRANSIENT FIELDS:\n\n" + Arrays.asList(transientFields);
66   }
67 }
68
Popular Tags