01: /*
02: * This file is part of the WfMOpen project.
03: * Copyright (C) 2001-2004 Danet GmbH (www.danet.de), GS-AN.
04: * All rights reserved.
05: *
06: * This program is free software; you can redistribute it and/or modify
07: * it under the terms of the GNU General Public License as published by
08: * the Free Software Foundation; either version 2 of the License, or
09: * (at your option) any later version.
10: *
11: * This program is distributed in the hope that it will be useful,
12: * but WITHOUT ANY WARRANTY; without even the implied warranty of
13: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14: * GNU General Public License for more details.
15: *
16: * You should have received a copy of the GNU General Public License
17: * along with this program; if not, write to the Free Software
18: * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19: *
20: * $Id: ContextRequester.java,v 1.2 2006/09/29 12:32:10 drmlipp Exp $
21: *
22: * $Log: ContextRequester.java,v $
23: * Revision 1.2 2006/09/29 12:32:10 drmlipp
24: * Consistently using WfMOpen as projct name now.
25: *
26: * Revision 1.1.1.1 2004/08/18 15:17:38 drmlipp
27: * Update to 1.2
28: *
29: * Revision 1.3 2004/04/12 19:31:50 lipp
30: * Minor fix.
31: *
32: * Revision 1.2 2004/04/01 09:32:07 lipp
33: * Improved tool agent context implementtaion.
34: *
35: * Revision 1.1 2004/03/29 11:45:25 lipp
36: * Made engine context available to tool agents.
37: *
38: */
39: package de.danet.an.workflow.spis.aii;
40:
41: /**
42: * This interface marks a {@link ToolAgent <code>ToolAgent</code>} as
43: * a requester of a {@link ToolAgentContext
44: * <code>ToolAgentContext</code>}. If a tool agent implements this
45: * interface, the <code>setContext</code> method will be called before
46: * the tool is invoked (i.e. before method {@link ToolAgent#invoke
47: * <code>invoke</code>} is called).
48: *
49: * @author <a href="mailto:lipp@danet.de">Michael Lipp</a>
50: * @version $Revision: 1.2 $
51: * @since 1.2
52: */
53: public interface ContextRequester {
54:
55: /**
56: * Makes an engine context available to the tool agent.
57: * @param context the engine context
58: */
59: void setToolAgentContext(ToolAgentContext context);
60: }
|