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.config.schema.test;
05:
06: import com.tc.config.schema.builder.SpringBeanConfigBuilder;
07:
08: import java.util.Collections;
09:
10: public class SpringBeanConfigBuilderImpl extends BaseConfigBuilder
11: implements SpringBeanConfigBuilder {
12:
13: private final String beanName;
14:
15: public SpringBeanConfigBuilderImpl(String beanName) {
16: super (8, new String[] { "beanName" });
17: this .beanName = beanName;
18: }
19:
20: public String toString() {
21: return openElement("bean", Collections.singletonMap("name",
22: beanName))
23: + closeElement("bean");
24: }
25: }
|