01: package dalma.spi;
02:
03: import dalma.Conversation;
04: import dalma.EndPoint;
05: import dalma.impl.ConversationImpl;
06: import dalma.impl.GeneratorImpl;
07:
08: /**
09: * Additional methods of {@link Conversation} available for {@link EndPoint}s.
10: *
11: * @author Kohsuke Kawaguchi
12: */
13: public abstract class ConversationSPI implements Conversation {
14:
15: /**
16: * Returns the {@link Conversation} that the current thread is executing.
17: */
18: public static ConversationSPI currentConversation() {
19: return ConversationImpl.currentConversation();
20: }
21:
22: /**
23: * Gets the engine to which this conversation belongs to.
24: */
25: public abstract EngineSPI getEngine();
26:
27: public abstract void addGenerator(GeneratorImpl generator);
28: }
|