|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.specrunner.parameters.core.ParameterHolder
org.specrunner.plugins.core.AbstractPlugin
org.specrunner.plugins.core.AbstractPluginNamed
org.specrunner.plugins.core.AbstractPluginScoped
org.specrunner.plugins.core.AbstractPluginValue
org.specrunner.hibernate.AbstractPluginFactory
org.specrunner.hibernate.PluginConfiguration
public class PluginConfiguration
Creates/recovers a configuration instance and add it to the global context. It can be done by using two strategies:
IConfigurationProvider, i.e.
type='myclass.MyConfigurationProvider';Configuration, i.e.
factory="myclass.Any" method="getConfig".
| Field Summary | |
|---|---|
static String |
FEATURE_FACTORY
Feature to set configuration factory class. |
static String |
FEATURE_METHOD
Feature to set method factory name. |
static String |
FEATURE_TYPE
Feature to set configuration provider class name. |
static String |
SESSION_CONFIGURATION
Default configuration name. |
| Fields inherited from class org.specrunner.hibernate.AbstractPluginFactory |
|---|
factory, method, type |
| Fields inherited from class org.specrunner.plugins.core.AbstractPlugin |
|---|
FEATURE_CONDITION, FEATURE_NORMALIZED, FEATURE_SLEEP, FEATURE_THREADSAFE, FEATURE_TIMEOUT, FEATURE_WAIT |
| Constructor Summary | |
|---|---|
PluginConfiguration()
|
|
| Method Summary | |
|---|---|
protected void |
changeUrl(IContext context,
org.hibernate.cfg.Configuration cfg)
Change URL if thread safe is true. |
ENext |
doStart(IContext context,
IResultSet result)
|
static org.hibernate.cfg.Configuration |
getConfiguration(IContext context,
String name)
Gets the configuration object bound to the environment with a given name. |
void |
initialize(IContext context)
|
| Methods inherited from class org.specrunner.hibernate.AbstractPluginFactory |
|---|
getActionType, getFactory, getMethod, getType, setFactory, setMethod, setType |
| 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, getCondition, getConditionModel, getNormalized, getNormalized, getParent, getSleep, getSleepModel, getThreadsafe, getTimeout, getTimeoutModel, getWait, getWaitModel, 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 |
|---|
public static final String SESSION_CONFIGURATION
public static final String FEATURE_TYPE
public static final String FEATURE_FACTORY
public static final String FEATURE_METHOD
| Constructor Detail |
|---|
public PluginConfiguration()
| Method Detail |
|---|
public void initialize(IContext context)
throws PluginException
initialize in interface IPlugininitialize in class AbstractPluginPluginException
public ENext doStart(IContext context,
IResultSet result)
throws PluginException
doStart in interface IPlugindoStart in class AbstractPluginPluginException
protected void changeUrl(IContext context,
org.hibernate.cfg.Configuration cfg)
context - The context.cfg - The configuration.
public static org.hibernate.cfg.Configuration getConfiguration(IContext context,
String name)
throws PluginException
context - The context.name - The presumed name of configuration.
PluginException - On configuration lookup error.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||