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.async.impl;
05:
06: import com.tc.async.api.ConfigurationContext;
07: import com.tc.async.api.Stage;
08: import com.tc.async.api.StageManager;
09: 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 name) {
28: return stageManager.getStage(name);
29: }
30:
31: public TCLogger getLogger(Class clazz) {
32: return TCLogging.getLogger(clazz);
33: }
34: }
|