public abstract class AbstractCondition extends Object implements Condition
Condition methods for an easy
extension| Modifier | Constructor and Description |
|---|---|
protected |
AbstractCondition() |
protected |
AbstractCondition(String name) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
configure() |
void |
configure(ConditionConfigurer configurer)
Configures the condition.
|
void |
destroy()
Classes derived from
AbstractCondition can override this method to destroy the Condition. |
protected WorkflowContext |
getContext() |
void |
initialize(WorkflowContext context)
Initializes a Program.
|
protected void |
setDescription(String description) |
protected void |
setName(String name) |
protected void |
setProperties(Map<String,String> properties) |
protected AbstractCondition()
protected AbstractCondition(String name)
protected void configure()
public void configure(ConditionConfigurer configurer)
Conditionconfigure in interface Conditionconfigurer - the ConditionConfigurer used to configure the condition.protected void setName(String name)
protected void setDescription(String description)
public void initialize(WorkflowContext context) throws Exception
ProgramLifecycle
This method will be called only once per ProgramLifecycle instance.
initialize in interface ProgramLifecycle<WorkflowContext>context - An instance of RuntimeContextException - If there is any error during initialization.public void destroy()
AbstractCondition can override this method to destroy the Condition.destroy in interface ProgramLifecycle<WorkflowContext>protected final WorkflowContext getContext()
WorkflowContextCopyright © 2024 Cask Data, Inc. Licensed under the Apache License, Version 2.0.