com.bareflow
Class ModuleFactory

java.lang.Object
  extended by com.bareflow.ModuleFactory

public abstract class ModuleFactory
extends java.lang.Object

Defines a factory to create module instances.

See Also:
IModule

Constructor Summary
protected ModuleFactory()
           
 
Method Summary
abstract  IModule createModule(java.io.InputStream stream)
          Creates new module from the input stream
abstract  IModule createModule(java.lang.String path)
          Creates new module from the resource specified by path
static ModuleFactory newInstance()
          Creates new ModuleFactory instance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ModuleFactory

protected ModuleFactory()
Method Detail

newInstance

public static ModuleFactory newInstance()
Creates new ModuleFactory instance

Returns:
ModuleFactory object

createModule

public abstract IModule createModule(java.lang.String path)
                              throws BareflowException
Creates new module from the resource specified by path

Parameters:
path - module location
Returns:
IModule object
Throws:
BareflowException

createModule

public abstract IModule createModule(java.io.InputStream stream)
                              throws BareflowException
Creates new module from the input stream

Parameters:
stream - input stream
Returns:
IModule object
Throws:
BareflowException