|
JTR 4.0 API Documentation | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjtr.assigner.impl.AbstractParamsAssigner
public abstract class AbstractParamsAssigner
This class is the base class for all the concrete
IParamsAssigner
implementations. It provides all the basic
methods necessary for injecting the configuration parameters that can be
found in the jtr.xml
configuration file into the concrete
IRunner
implementation.
Constructor Summary | |
---|---|
AbstractParamsAssigner()
|
Method Summary | |
---|---|
protected void |
assignEnterpriseCfg(java.util.HashMap map,
RunnerConfig runnerConfig,
ParametersMap params)
This method loads into the provided map the
ENTERPRISE configuration to be assigned to the provided
runner implementation using StdParameters.ENTERPRISE as a
key. |
protected void |
assignJmsCfg(java.util.HashMap map,
RunnerConfig runnerConfig,
ParametersMap params)
This method loads into the provided map the
JMS configuration to be assigned to the provided runner
implementation using StdParameters.JMS as a key. |
protected void |
assignRuns(java.util.HashMap map,
RunnerConfig runnerConfig,
ParametersMap params)
This method loads into the provided map the
RUNS value to be assigned to the provided runner
implementation using StdParameters.RUN as a key. |
protected void |
assignSleepTime(java.util.HashMap map,
RunnerConfig runnerConfig,
ParametersMap params)
This method loads into the provided map the
SLEEP_TIME value to be assigned to the provided runner
implementation using StdParameters.SLEEP_TIME as a key. |
protected void |
assignWebservice(java.util.HashMap map,
RunnerConfig runnerConfig,
ParametersMap params)
This method loads into the provided map the
WEBSERVICE configuration to be assigned to the provided
runner implementation using StdParameters.WEBSERVICE as a
key. |
protected void |
assingBinding(java.util.HashMap map,
RunnerConfig runnerConfig,
ParametersMap params)
This method loads into the provided map the
BINDING configuration to be assigned to the provided
runner implementation using StdParameters.BINDING as a
key. |
protected void |
performStdAssignment(IRunnerClean cRunner,
RunnerConfig runnerConfig,
ParametersMap params,
IParamsAssigner caller)
This method assigns to the input IRunnerClean instance all
its configuration parameters specified in the jtr.xml
file.This parameters are stored into the runnerConfig and
params input parameters. |
java.util.HashMap |
readStdParameters(RunnerConfig runnerConfig,
ParametersMap params)
This method reads all the JTR standard parameters and put them all into an HashMap .The keys used within this HashMap are those specified as
constant fields into the StdParameters class. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface jtr.assigner.IParamsAssigner |
---|
assign, backToFirstAssignment, reAssign, requiresReinitialization |
Constructor Detail |
---|
public AbstractParamsAssigner()
Method Detail |
---|
public java.util.HashMap readStdParameters(RunnerConfig runnerConfig, ParametersMap params) throws MissingStdParameterException
HashMap
.HashMap
are those specified as
constant fields into the StdParameters
class.
runnerConfig
- RunnerConfigparams
- ParametersMap
MissingStdParameterException
StdParameters
protected void assingBinding(java.util.HashMap map, RunnerConfig runnerConfig, ParametersMap params) throws MissingStdParameterException
map
the
BINDING
configuration to be assigned to the provided
runner implementation using StdParameters.BINDING
as a
key.
map
- HashMaprunnerConfig
- RunnerConfigparams
- ParametersMap
MissingStdParameterException
protected void assignWebservice(java.util.HashMap map, RunnerConfig runnerConfig, ParametersMap params) throws MissingStdParameterException
map
the
WEBSERVICE
configuration to be assigned to the provided
runner implementation using StdParameters.WEBSERVICE
as a
key.
map
- HashMaprunnerConfig
- RunnerConfigparams
- ParametersMap
MissingStdParameterException
protected void assignSleepTime(java.util.HashMap map, RunnerConfig runnerConfig, ParametersMap params) throws MissingStdParameterException
map
the
SLEEP_TIME
value to be assigned to the provided runner
implementation using StdParameters.SLEEP_TIME
as a key.
map
- HashMaprunnerConfig
- RunnerConfigparams
- ParametersMap
MissingStdParameterException
protected void assignRuns(java.util.HashMap map, RunnerConfig runnerConfig, ParametersMap params)
map
the
RUNS
value to be assigned to the provided runner
implementation using StdParameters.RUN
as a key.
map
- HashMaprunnerConfig
- RunnerConfigparams
- ParametersMapprotected void assignEnterpriseCfg(java.util.HashMap map, RunnerConfig runnerConfig, ParametersMap params) throws MissingStdParameterException
map
the
ENTERPRISE
configuration to be assigned to the provided
runner implementation using StdParameters.ENTERPRISE
as a
key.
map
- HashMaprunnerConfig
- RunnerConfigparams
- ParametersMap
MissingStdParameterException
protected void assignJmsCfg(java.util.HashMap map, RunnerConfig runnerConfig, ParametersMap params) throws MissingStdParameterException
map
the
JMS
configuration to be assigned to the provided runner
implementation using StdParameters.JMS
as a key.
map
- HashMaprunnerConfig
- RunnerConfigparams
- ParametersMap
MissingStdParameterException
protected void performStdAssignment(IRunnerClean cRunner, RunnerConfig runnerConfig, ParametersMap params, IParamsAssigner caller)
IRunnerClean
instance all
its configuration parameters specified in the jtr.xml
file.runnerConfig
and
params
input parameters.
cRunner
- IRunnerCleanrunnerConfig
- RunnerConfigparams
- ParametersMapcaller
- IParamsAssigner
|
The JTR Project is licensed under GPL version 2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |