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.ConfigBuilderFactory;
07: import com.tc.config.schema.builder.InstrumentedClassConfigBuilder;
08: import com.tc.config.schema.builder.LockConfigBuilder;
09: import com.tc.config.schema.builder.RootConfigBuilder;
10:
11: public class ConfigBuilderFactoryImpl implements ConfigBuilderFactory {
12:
13: public RootConfigBuilder newRootConfigBuilder() {
14: RootConfigBuilder rv = new RootConfigBuilderImpl();
15: return rv;
16: }
17:
18: public InstrumentedClassConfigBuilder newInstrumentedClassConfigBuilder() {
19: return new InstrumentedClassConfigBuilderImpl();
20: }
21:
22: public LockConfigBuilder newWriteAutoLockConfigBuilder() {
23: LockConfigBuilder builder = new LockConfigBuilderImpl(
24: LockConfigBuilder.TAG_AUTO_LOCK);
25: builder.setLockLevel(LockConfigBuilder.LEVEL_WRITE);
26: return builder;
27: }
28:
29: public LockConfigBuilder newReadAutoLockConfigBuilder() {
30: LockConfigBuilder builder = new LockConfigBuilderImpl(
31: LockConfigBuilder.TAG_AUTO_LOCK);
32: builder.setLockLevel(LockConfigBuilder.LEVEL_READ);
33: return builder;
34: }
35:
36: }
|