|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.javatest.tool.CustomPropagationController
public class CustomPropagationController
This class provides a way to extend default behavior of template propagation process
Nested Class Summary | |
---|---|
static class |
CustomPropagationController.EventType
EventType.Start - propagation starting event EventType.TemplateLoaded - external template data loaded and accessible EventType.Finish - propagation finishing event |
Constructor Summary | |
---|---|
CustomPropagationController()
|
Method Summary | |
---|---|
java.lang.String |
getQuestionText(java.lang.String key,
java.lang.String defaultText)
Returns the question's text. |
void |
notify(CustomPropagationController.EventType evt,
InterviewParameters interview,
java.util.Properties templateData)
Invoked when a template propagation event occurs. |
boolean |
preprocessData(java.util.Properties templateData,
InterviewParameters interview)
Invoked before propagation process. |
void |
refreshTests()
Request that the harness reload the test suite structure from the test suite. |
void |
setInterview(InterviewParameters ip)
|
void |
setRefresher(InterviewPropagator.TestRefresher refresher)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CustomPropagationController()
Method Detail |
---|
public void notify(CustomPropagationController.EventType evt, InterviewParameters interview, java.util.Properties templateData)
evt
- - kind of event. For example EventType.Start or EventType.Finishinterview
- - current InterviewParameters.templateData
- - loaded actual template's values. Can be nullpublic java.lang.String getQuestionText(java.lang.String key, java.lang.String defaultText)
key
- - the question keydefaultText
-
public boolean preprocessData(java.util.Properties templateData, InterviewParameters interview)
templateData
- - template data in key-value forminterview
-
public void refreshTests()
public void setRefresher(InterviewPropagator.TestRefresher refresher)
public void setInterview(InterviewParameters ip)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |