KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tc > async > impl > ConfigurationContextImpl


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.async.impl;
5
6 import com.tc.async.api.ConfigurationContext;
7 import com.tc.async.api.Stage;
8 import com.tc.async.api.StageManager;
9 import com.tc.logging.TCLogger;
10 import com.tc.logging.TCLogging;
11
12 /**
13  * Used to initialize and event handlers. This needs to grow up a lot. I want to beable to have null stages and tracing
14  * stages and all kinds of crazy useful stuff. But I don't want to bog down so I'm going to add stuff as I need it for
15  * now.
16  *
17  * @author steve
18  */

19 public class ConfigurationContextImpl implements ConfigurationContext {
20
21   private StageManager stageManager;
22
23   public ConfigurationContextImpl(StageManager stageManager) {
24     this.stageManager = stageManager;
25   }
26
27   public Stage getStage(String JavaDoc name) {
28     return stageManager.getStage(name);
29   }
30
31   public TCLogger getLogger(Class JavaDoc clazz) {
32     return TCLogging.getLogger(clazz);
33   }
34 }
Popular Tags