net.sourceforge.mflow.api
Interface ComponentManager

All Known Implementing Classes:
ComponentManagerImpl

public interface ComponentManager

A class for managing instances of MsgFlowComponent

Version:
$Revision: 1.4 $
Author:
David Carr

Method Summary
 void addComponentType(java.lang.Class ct)
          Adds a new type of component
 java.lang.Class[] getComponentTypes()
          Gets the registered component types
 MsgFlowComponent[] getInstances()
          Gets an array of the current instances of MsgFlowComponent
 MsgFolder[] getRootFolders()
          Gets the root MsgFolders
 SendFolder[] getSendFolders()
          Gets the active instances of SendFolder
 MsgFlowComponent newInstance(java.lang.Class c)
          Creates an instance of an MsgFlowComponent.
 void removeInstance(MsgFlowComponent comp)
          Removes an instance of MsgFlowComponent
 void send()
          Sends all queued messages
 

Method Detail

addComponentType

void addComponentType(java.lang.Class ct)
Adds a new type of component

Parameters:
ct - the Class object for the MsgFlowComponent implementation

newInstance

MsgFlowComponent newInstance(java.lang.Class c)
Creates an instance of an MsgFlowComponent.

Parameters:
c - the Class object for the component type
Returns:
an MsgFlowComponent of the specified type, or null on error
See Also:
getComponentTypes()

getComponentTypes

java.lang.Class[] getComponentTypes()
Gets the registered component types

Returns:
an array of Class objects for all known implementations of MsgFlowComponent

getInstances

MsgFlowComponent[] getInstances()
Gets an array of the current instances of MsgFlowComponent

Returns:
an array of MsgFlowComponents

removeInstance

void removeInstance(MsgFlowComponent comp)
Removes an instance of MsgFlowComponent

Parameters:
comp - the instance to remove

getRootFolders

MsgFolder[] getRootFolders()
Gets the root MsgFolders

Returns:
the root MsgFolders

getSendFolders

SendFolder[] getSendFolders()
Gets the active instances of SendFolder

Returns:
an array of SendFolder instances

send

void send()
Sends all queued messages



Copyright © 2002-2004 MFlow Group. All Rights Reserved.