1 /*
2 * (C) 2002 David Carr david@carr.name
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 */
18
19 package net.sourceforge.mflow.api;
20
21 /***
22 * A class for managing instances of MsgFlowComponent
23 *
24 * @author <a href="mailto:david@carr.name">David Carr</a>
25 * @version $Revision: 1.4 $
26 */
27 public interface ComponentManager {
28 /***
29 * Adds a new type of component
30 *
31 * @param ct the Class object for the MsgFlowComponent implementation
32 */
33 void addComponentType(Class ct);
34
35 /***
36 * Creates an instance of an MsgFlowComponent.
37 *
38 * @param c the Class object for the component type
39 * @return an MsgFlowComponent of the specified type, or null on error
40 * @see #getComponentTypes()
41 */
42 MsgFlowComponent newInstance(Class c);
43
44 /***
45 * Gets the registered component types
46 *
47 * @return an array of Class objects for all known implementations of
48 * MsgFlowComponent
49 */
50 Class[] getComponentTypes();
51
52 /***
53 * Gets an array of the current instances of MsgFlowComponent
54 *
55 * @return an array of MsgFlowComponents
56 */
57 MsgFlowComponent[] getInstances();
58
59 /***
60 * Removes an instance of MsgFlowComponent
61 *
62 * @param comp the instance to remove
63 */
64 void removeInstance(MsgFlowComponent comp);
65
66 /***
67 * Gets the root MsgFolders
68 *
69 * @return the root MsgFolders
70 */
71 MsgFolder[] getRootFolders();
72
73 /***
74 * Gets the active instances of SendFolder
75 *
76 * @return an array of SendFolder instances
77 */
78 SendFolder[] getSendFolders();
79
80 /***
81 * Sends all queued messages
82 */
83 void send();
84 }
This page was automatically generated by Maven