| 
 | JTR 5.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 abstract  boolean | _requiresReinitialization()This method must be implemented by concrete subclasses to tell the JTR-runtime if the runner mnaged be the assigner requires to be reinitialized upon each run completion. | 
| protected  void | assignEnterpriseCfg(java.util.HashMap map,
                    RunnerConfig runnerConfig,
                    ParametersMap params)This method loads into the provided maptheENTERPRISEconfiguration to be assigned to the provided
 runner implementation usingStdParameters.ENTERPRISEas a
 key. | 
| protected  void | assignJmsCfg(java.util.HashMap map,
             RunnerConfig runnerConfig,
             ParametersMap params)This method loads into the provided maptheJMSconfiguration to be assigned to the provided runner
 implementation usingStdParameters.JMSas a key. | 
| protected  void | assignParameter(IRunnerClean cRunner,
                RunnerConfigParam param,
                java.lang.Object val)This method allows the assignment of the provided valinstance to
 theparamproperty of the specifiedcRunnerinstance. | 
| protected  void | assignRuns(java.util.HashMap map,
           RunnerConfig runnerConfig,
           ParametersMap params)This method loads into the provided maptheRUNSvalue to be assigned to the provided runner
 implementation usingStdParameters.RUNas a key. | 
| protected  void | assignSleepTime(java.util.HashMap map,
                RunnerConfig runnerConfig,
                ParametersMap params)This method loads into the provided maptheSLEEP_TIMEvalue to be assigned to the provided runner
 implementation usingStdParameters.SLEEP_TIMEas a key. | 
| protected  void | assignWebservice(java.util.HashMap map,
                 RunnerConfig runnerConfig,
                 ParametersMap params)This method loads into the provided maptheWEBSERVICEconfiguration to be assigned to the provided
 runner implementation usingStdParameters.WEBSERVICEas a
 key. | 
| protected  void | assingBinding(java.util.HashMap map,
              RunnerConfig runnerConfig,
              ParametersMap params)This method loads into the provided maptheBINDINGconfiguration to be assigned to the provided
 runner implementation usingStdParameters.BINDINGas a
 key. | 
| protected  void | handleUserDefinedParameters(IRunnerClean cRunner,
                            RunnerConfig runnerConfig,
                            ParametersMap params)This method routes the initialization of the different families of supported parameters other than the standard ones. | 
|  boolean | isReinitializationForced()Tells whether runner reinitialization has been forced by the JTR-runtime. | 
| protected  void | performStdAssignment(IRunnerClean cRunner,
                     RunnerConfig runnerConfig,
                     ParametersMap params,
                     IParamsAssigner caller)This method assigns to the input IRunnerCleaninstance all
 its configuration parameters specified in thejtr.xmlfile.These parameters are stored into the runnerConfigandparamsinput parameters. | 
|  java.util.HashMap | readStdParameters(RunnerConfig runnerConfig,
                  ParametersMap params)This method reads all the JTR standard parameters and puts them all into an HashMap.The keys used within this HashMapare those specified as
 constant fields into theStdParametersclass. | 
|  boolean | requiresReinitialization()Tells whether the runner managed by this assigner required reinitialization or not. | 
| 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 | 
| Constructor Detail | 
|---|
public AbstractParamsAssigner()
| Method Detail | 
|---|
protected final 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
protected final void handleUserDefinedParameters(IRunnerClean cRunner,
                                                 RunnerConfig runnerConfig,
                                                 ParametersMap params)
cRunner - runnerConfig - params - 
protected void assignParameter(IRunnerClean cRunner,
                               RunnerConfigParam param,
                               java.lang.Object val)
val instance to
 the param property of the specified cRunner instance.
cRunner - param - val - protected abstract boolean _requiresReinitialization()
public final boolean isReinitializationForced()
isReinitializationForced in interface IParamsAssignerpublic final boolean requiresReinitialization()
requiresReinitialization in interface IParamsAssigner
public final 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
MissingStdParameterExceptionStdParameters
protected final 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 final 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 final 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 final 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 - ParametersMap
protected final 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 final 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| 
 | 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 | |||||||||