org.specrunner.hibernate
Class AbstractPluginFactory

java.lang.Object
  extended by org.specrunner.parameters.core.ParameterHolder
      extended by org.specrunner.plugins.core.AbstractPlugin
          extended by org.specrunner.plugins.core.AbstractPluginNamed
              extended by org.specrunner.plugins.core.AbstractPluginScoped
                  extended by org.specrunner.plugins.core.AbstractPluginValue
                      extended by org.specrunner.hibernate.AbstractPluginFactory
All Implemented Interfaces:
IParameterHolder, IActionType, IParalelPlugin, IPlugin, ISleepPlugin, ITestPlugin, ITimedPlugin, IWaitPlugin
Direct Known Subclasses:
PluginConfiguration, PluginSessionFactory

public abstract class AbstractPluginFactory
extends AbstractPluginValue

Common part of plugins with Spring like factory methods.

Author:
Thiago Santos

Field Summary
protected  String factory
          The factory class.
protected  String method
          The method name in object factory.
protected  String type
          The provider class name.
 
Fields inherited from class org.specrunner.plugins.core.AbstractPlugin
FEATURE_CONDITION, FEATURE_NORMALIZED, FEATURE_SLEEP, FEATURE_THREADSAFE, FEATURE_TIMEOUT, FEATURE_WAIT
 
Constructor Summary
AbstractPluginFactory()
           
 
Method Summary
 ActionType getActionType()
           
 String getFactory()
          Get the session factory factory class.
 String getMethod()
          Get the static method of object factory.
 String getType()
          Get the session factory provider class name.
 void setFactory(String factory)
          Set session factory object factory.
 void setMethod(String method)
          Set the method of a factory.
 void setType(String type)
          Set the session factory provider.
 
Methods inherited from class org.specrunner.plugins.core.AbstractPluginValue
getValue, getValue, isEval, setEval, setValue
 
Methods inherited from class org.specrunner.plugins.core.AbstractPluginScoped
getScope, saveGlobal, saveLocal, saveStrict, setScope
 
Methods inherited from class org.specrunner.plugins.core.AbstractPluginNamed
getName, setName
 
Methods inherited from class org.specrunner.plugins.core.AbstractPlugin
copy, doEnd, doStart, getCondition, getConditionModel, getNormalized, getNormalized, getParent, getSleep, getSleepModel, getThreadsafe, getTimeout, getTimeoutModel, getWait, getWaitModel, initialize, setCondition, setConditionModel, setNormalized, setParent, setSleep, setSleepModel, setThreadsafe, setTimeout, setTimeoutModel, setWait, setWaitModel, toString
 
Methods inherited from class org.specrunner.parameters.core.ParameterHolder
getParameters, setParameters
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.specrunner.parameters.IParameterHolder
getParameters, setParameters
 

Field Detail

type

protected String type
The provider class name.


factory

protected String factory
The factory class.


method

protected String method
The method name in object factory.

Constructor Detail

AbstractPluginFactory

public AbstractPluginFactory()
Method Detail

getActionType

public ActionType getActionType()

getType

public String getType()
Get the session factory provider class name.

Returns:
The session factory provider class name.

setType

public void setType(String type)
Set the session factory provider.

Parameters:
type - The factory type.

getFactory

public String getFactory()
Get the session factory factory class.

Returns:
The object factory.

setFactory

public void setFactory(String factory)
Set session factory object factory.

Parameters:
factory - The object factory name.

getMethod

public String getMethod()
Get the static method of object factory.

Returns:
The creator method.

setMethod

public void setMethod(String method)
Set the method of a factory.

Parameters:
method - The factory method.


Copyright © 2014. All rights reserved.