org.ow2.jasmine.vmm.agent.driver
Class DriverFactory

java.lang.Object
  extended by org.ow2.jasmine.vmm.agent.driver.DriverFactory

public class DriverFactory
extends java.lang.Object

The DriverFactory class is a singleton which acts a factory of Driver objects. Driver are identified with symbolic aliases in domain XML files. The mapping between driver aliases and Java Driver classes is specified in the etc/drivermap.properties file.


Field Summary
protected static org.apache.log4j.Logger logger
           
 
Method Summary
static DriverFactory getInstance()
          Returns the single DriverFactory instance
 Driver newDriver(java.lang.String driverName)
          Builds a new Driver object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected static org.apache.log4j.Logger logger
Method Detail

getInstance

public static DriverFactory getInstance()
Returns the single DriverFactory instance

Returns:

newDriver

public Driver newDriver(java.lang.String driverName)
Builds a new Driver object

Parameters:
driverName - alias of the driver to create
Returns:
the Driver object


Copyright © 2009 OW2 Consortium. All Rights Reserved.