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>spring</code> config element hierarchy
10: */
11: public class SpringApp {
12:
13: private boolean sessionSupport;
14: private Lock[] locks;
15: private InstrumentedClass[] includes;
16: private AppContext[] appContexts;
17: private String name;
18: private boolean fastProxy;
19: private String[] transientFields;
20:
21: public SpringApp(boolean sessionSupport, Lock[] locks,
22: InstrumentedClass[] includes, AppContext[] appContexts,
23: String name, boolean fastProxy, String[] 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 name() {
51: return name;
52: }
53:
54: public boolean fastProxy() {
55: return fastProxy;
56: }
57:
58: public String[] transientFields() {
59: return transientFields;
60: }
61:
62: public String toString() {
63: return "SPRING: " + name + "\nSESSION: " + sessionSupport
64: + "\nLOCKS:\n\n" + Arrays.asList(locks)
65: + "\nINCLUDES:\n\n" + Arrays.asList(includes) + "\n"
66: + Arrays.asList(appContexts) + "\nFASTPROXY: "
67: + fastProxy + "\nTRANSIENT FIELDS:\n\n"
68: + Arrays.asList(transientFields);
69: }
70: }
|