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>beans</code> config element hierarchy
10: */
11: public class SpringContextBean {
12:
13: private String name;
14: private String[] nonDistributedFields;
15:
16: public SpringContextBean(String name, String[] nonDistributedFields) {
17: this .name = name;
18: this .nonDistributedFields = nonDistributedFields;
19: }
20:
21: public String name() {
22: return name;
23: }
24:
25: public String[] nonDistributedFields() {
26: return nonDistributedFields;
27: }
28:
29: public String toString() {
30: return "BEAN: " + name + "\nFIELDS:\n\n"
31: + Arrays.asList(nonDistributedFields);
32: }
33: }
|