KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tc > config > schema > test > SpringBeanConfigBuilderImpl


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