comparison artifacts/src/main/java/de/intevation/artifacts/CallContext.java @ 245:def3daabc5b5

Added a listener to be called if a call context was created and closed artifacts/trunk@1685 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Thu, 14 Apr 2011 10:19:12 +0000
parents 933bbc9fc11f
children eafe59ecfb7e
comparison
equal deleted inserted replaced
244:3d14fe6e05f7 245:def3daabc5b5
13 * and out() to enable the artifact to communicate with the runtime system. 13 * and out() to enable the artifact to communicate with the runtime system.
14 * @author <a href="mailto:sascha.teichmann@intevation.de">Sascha L. Teichmann</a> 14 * @author <a href="mailto:sascha.teichmann@intevation.de">Sascha L. Teichmann</a>
15 */ 15 */
16 public interface CallContext 16 public interface CallContext
17 { 17 {
18 interface Listener {
19 void init(CallContext callContext);
20 void close(CallContext callContext);
21 }
22
18 /** 23 /**
19 * Constant to signal that nothing should be done 24 * Constant to signal that nothing should be done
20 * with the artifact after method return. 25 * with the artifact after method return.
21 */ 26 */
22 int NOTHING = 0; 27 int NOTHING = 0;

http://dive4elements.wald.intevation.org