net.sourceforge.mflow.api
Class MsgFactory

java.lang.Object
  extended bynet.sourceforge.mflow.api.MsgFactory

public abstract class MsgFactory
extends java.lang.Object

Author:
carrd

Constructor Summary
MsgFactory()
           
 
Method Summary
abstract  Msg createMsg()
          Creates an instance of Msg
static MsgFactory getInstance()
           
protected  void register(MsgFactory aInstance)
          Sets the passed instance to be returned by getInstance()
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MsgFactory

public MsgFactory()
Method Detail

register

protected final void register(MsgFactory aInstance)
Sets the passed instance to be returned by getInstance()

Parameters:
aInstance - the new instance to use

getInstance

public static MsgFactory getInstance()
Returns:
an instance of MsgFactory

createMsg

public abstract Msg createMsg()
Creates an instance of Msg

Returns:
a new instance of Msg


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