org.exolab.jmscts.provider
Class ProviderLoader

java.lang.Object
  |
  +--org.exolab.jmscts.provider.ProviderLoader

public class ProviderLoader
extends java.lang.Object

Loads a Provider using its configuration

Version:
$Revision: 1.3 $ $Date: 2004/02/02 03:50:09 $
Author:
Tim Anderson
See Also:
Provider

Constructor Summary
ProviderLoader()
          Construct a new ProviderLoader
 
Method Summary
 Provider createProvider()
          Create a new provider.
 java.lang.String getClassName()
          Returns the provider implementation class name
 java.lang.String getName()
          Returns the provider name
 Paths getPaths()
          Returns the classpath for the provider
 Provider getProvider()
          Returns the provider
 boolean getStart()
          Determines if the provider should be started prior to running tests
 boolean getStop()
          Determines if the provider should be stopped after running tests
 void setClassName(java.lang.String className)
          Sets the provider implementation class name
 void setName(java.lang.String name)
          Sets the provider name
 void setPaths(Paths paths)
          Sets the classpath for the provider
 void setProvider(Provider provider)
          Set the provider
 void setStart(boolean start)
          Sets if the provider should be started prior to running tests
 void setStop(boolean stop)
          Sets if the provider should be stopped after running tests
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProviderLoader

public ProviderLoader()
Construct a new ProviderLoader
Method Detail

setName

public void setName(java.lang.String name)
Sets the provider name
Parameters:
name - the provider name

getName

public java.lang.String getName()
Returns the provider name
Returns:
the provider name

setClassName

public void setClassName(java.lang.String className)
Sets the provider implementation class name
Parameters:
className - the provider implementation class name

getClassName

public java.lang.String getClassName()
Returns the provider implementation class name
Returns:
the provider implementation class name

setStart

public void setStart(boolean start)
Sets if the provider should be started prior to running tests
Parameters:
start - if true, start the provider

getStart

public boolean getStart()
Determines if the provider should be started prior to running tests
Returns:
true if the provider should be started

setStop

public void setStop(boolean stop)
Sets if the provider should be stopped after running tests
Parameters:
stop - if true, stop the provider

getStop

public boolean getStop()
Determines if the provider should be stopped after running tests
Returns:
true if the provider should be stopped

setPaths

public void setPaths(Paths paths)
Sets the classpath for the provider
Parameters:
paths - the classpath

getPaths

public Paths getPaths()
Returns the classpath for the provider
Returns:
the classpath

setProvider

public void setProvider(Provider provider)
Set the provider
Parameters:
provider - the provider

getProvider

public Provider getProvider()
Returns the provider
Returns:
the provider

createProvider

public Provider createProvider()
                        throws java.lang.Exception
Create a new provider. This constructs an instance of the class specified by getClassName(), using the classpath specified by getPaths()
Returns:
the new provider
Throws:
java.lang.Exception - if the provider can't be created


Copyright © 2001-2004 JMS CTS Team. All Rights Reserved.