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.bytecode.hook.impl;
05:
06: import com.tc.config.schema.dynamic.ConfigItem;
07: import com.tc.config.schema.setup.L1TVSConfigurationSetupManager;
08: import com.tc.object.DistributedObjectClient;
09: import com.tc.object.config.ConnectionInfoConfigItem;
10: import com.tc.util.Assert;
11:
12: /**
13: * Contains components created during L2-connection time, in {@link DSOContextImpl}, that are needed by the
14: * {@link DistributedObjectClient} eventually.
15: */
16: public class PreparedComponentsFromL2Connection {
17: private final L1TVSConfigurationSetupManager config;
18:
19: public PreparedComponentsFromL2Connection(
20: L1TVSConfigurationSetupManager config) {
21: Assert.assertNotNull(config);
22: this .config = config;
23: }
24:
25: public ConfigItem createConnectionInfoConfigItem() {
26: return new ConnectionInfoConfigItem(this.config.l2Config()
27: .l2Data());
28: }
29: }
|