KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tc > object > bytecode > hook > impl > PreparedComponentsFromL2Connection


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.object.bytecode.hook.impl;
5
6 import com.tc.config.schema.dynamic.ConfigItem;
7 import com.tc.config.schema.setup.L1TVSConfigurationSetupManager;
8 import com.tc.object.DistributedObjectClient;
9 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(L1TVSConfigurationSetupManager config) {
20     Assert.assertNotNull(config);
21     this.config = config;
22   }
23
24   public ConfigItem createConnectionInfoConfigItem() {
25     return new ConnectionInfoConfigItem(this.config.l2Config().l2Data());
26   }
27 }
Popular Tags