tim@102: /** tim@102: * tim@102: */ tim@102: package de.intevation.gnv.artifacts; tim@102: tim@485: import de.intevation.artifacts.ArtifactDatabase; tim@485: import de.intevation.artifacts.ArtifactFactory; tim@102: import de.intevation.artifacts.CallContext; tim@116: import de.intevation.artifacts.CallMeta; tim@102: tim@102: /** tim@102: * @author Tim Englich sascha@778: * tim@102: */ tim@102: public class TestCallContext implements CallContext { tim@102: tim@485: tim@485: tim@102: private Object globalContext = null; tim@117: private CallMeta callMeta = null; tim@485: private ArtifactFactory artifactFactory = null; tim@485: private ArtifactDatabase artifactDatabase = null; tim@102: /** tim@102: * Constructor tim@102: */ sascha@778: public TestCallContext(Object globalContext, sascha@778: CallMeta callMeta, tim@485: ArtifactFactory artifactFactory) { tim@102: this.globalContext = globalContext; tim@117: this.callMeta = callMeta; tim@485: this.artifactDatabase = new TestArtifactDatabase(artifactFactory); tim@102: } tim@102: tim@102: /** tim@102: * @see de.intevation.artifacts.CallContext#afterBackground(int) tim@102: */ tim@102: public void afterBackground(int action) { tim@102: } tim@102: tim@102: /** tim@102: * @see de.intevation.artifacts.CallContext#afterCall(int) tim@102: */ tim@102: public void afterCall(int action) { tim@102: } tim@102: tim@102: /** tim@102: * @see de.intevation.artifacts.CallContext#globalContext() tim@102: */ tim@102: public Object globalContext() { tim@102: return this.globalContext; tim@102: } tim@102: tim@116: public CallMeta getMeta() { tim@117: return this.callMeta; tim@116: } tim@116: tim@306: public Object getContextValue(Object key) { tim@485: return null; tim@306: } tim@306: tim@306: public Object putContextValue(Object key, Object value) { tim@485: return null; tim@306: } tim@306: tim@485: public ArtifactDatabase getDatabase() { tim@485: return this.artifactDatabase; tim@485: } tim@102: }