org.ikasan.framework.module
Class SimpleModule

java.lang.Object
  extended by org.ikasan.framework.module.SimpleModule
All Implemented Interfaces:
Module

public class SimpleModule
extends Object
implements Module

A simple representation of a Module

Author:
Ikasan Development Team

Field Summary
protected  String name
          Module name
 
Constructor Summary
SimpleModule(String name)
          Constructor
SimpleModule(String name, List<Initiator> initiators)
          Constructor
 
Method Summary
 String getDescription()
          Returns a human readable description of this module
 Map<String,Flow> getFlows()
          Returns a Map of this module's Flows
 Initiator getInitiator(String initiatorName)
          Resolve the initiator
 List<Initiator> getInitiators()
          Returns all of this module's Initiators
 String getName()
          Accessor for name
 void setDescription(String description)
          Set the description.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

name

protected String name
Module name

Constructor Detail

SimpleModule

public SimpleModule(String name,
                    List<Initiator> initiators)
Constructor

Parameters:
name - The name of the module
initiators - A list of Initiators for the module

SimpleModule

public SimpleModule(String name)
Constructor

Parameters:
name - Name of the module
Method Detail

getName

public String getName()
Accessor for name

Specified by:
getName in interface Module
Returns:
module name

getInitiator

public Initiator getInitiator(String initiatorName)
Resolve the initiator

Specified by:
getInitiator in interface Module
Parameters:
initiatorName - The name of the initiator
Returns:
The resolve initiator

getInitiators

public List<Initiator> getInitiators()
Description copied from interface: Module
Returns all of this module's Initiators

Specified by:
getInitiators in interface Module
Returns:
the initiators

getFlows

public Map<String,Flow> getFlows()
Description copied from interface: Module
Returns a Map of this module's Flows

Specified by:
getFlows in interface Module
Returns:
Map of Flows keyed by flowName
See Also:
Module.getFlows()

getDescription

public String getDescription()
Description copied from interface: Module
Returns a human readable description of this module

Specified by:
getDescription in interface Module
Returns:
String description
See Also:
Module.getDescription()

setDescription

public void setDescription(String description)
Set the description.

Parameters:
description - - description to set

toString

public String toString()
Overrides:
toString in class Object
See Also:
Object.toString()


Copyright © 2007-2012 Ikasan. All Rights Reserved.