org.virtualmock
Class VMFactory

java.lang.Object
  extended byorg.virtualmock.VMFactory

public class VMFactory
extends java.lang.Object

A Factory to create instances of VM. This is the entry point to VirtualMock. Also performs common initialization for the VirtualMock environment.

Version:
$Revision: 1.20 $
Author:
Chad Woolley

Constructor Summary
VMFactory()
           
 
Method Summary
protected  CallManager createCallManager()
          Create the CallManager.
protected  ResourceManager createResourceManager()
          Create the ResourceManager.
protected  RuleManager createRuleManager(java.util.List rules, ResourceManager resourceManager)
          Create the RuleManager.
protected  java.util.List createRules(CallManager callManager, ResourceManager resourceManager)
          Create and configure the rules that will apply for this virtualmock session.
static VM createVM()
          Creates a new instance of the VM class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VMFactory

public VMFactory()
Method Detail

createVM

public static VM createVM()
Creates a new instance of the VM class.

Returns:
a new instance of the VM class.

createCallManager

protected CallManager createCallManager()
Create the CallManager.

Returns:
a new, initialized CallManager

createResourceManager

protected ResourceManager createResourceManager()
Create the ResourceManager.

Returns:
a new, initialized ResourceManager

createRuleManager

protected RuleManager createRuleManager(java.util.List rules,
                                        ResourceManager resourceManager)
Create the RuleManager.

Parameters:
rules - the list of rules to be used when creating the RuleManager
resourceManager - the ResourceManager to be used when creating the RuleManager
Returns:
a new, initialized RuleManager

createRules

protected java.util.List createRules(CallManager callManager,
                                     ResourceManager resourceManager)
Create and configure the rules that will apply for this virtualmock session.

Parameters:
callManager - the CallManager that will be used when creating the rules
resourceManager - the ResourceManager that will be used when creating the rules
Returns:
a list of all rules that were created


Copyright © 2003-2005 Virtual Mock. All Rights Reserved.