Class RuleConstructor.ConditionClause
- Enclosing class:
RuleConstructor
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionDefinition of bind clause.compile()
Defines rule for being compiled.Byteman helper class to be used in rule definition.Class name of Byteman helper class.ifCondition
(String condition) Rule condition when rule will be executed.ifFalse()
Condition ensuring that rule won't be executed.ifTrue()
Condition ensuring that rule will be executed.Setting module import definition for the rule.Defines rule for not being compiled.
-
Constructor Details
-
ConditionClause
public ConditionClause()
-
-
Method Details
-
helper
Byteman helper class to be used in rule definition.- Parameters:
helperClass
- byteman helper class- Returns:
- this, for having fluent api
-
helper
Class name of Byteman helper class.- Parameters:
helperClassName
- byteman helper class name- Returns:
- this, for having fluent api
-
bind
Definition of bind clause.
When called as
bind("engine:CoordinatorEngine = $0", "identifier:String = engine.getId()")
rule looks
BIND bind("engine:CoordinatorEngine = $0"; "identifier:String = engine.getId()
- Parameters:
bindClauses
- bind clauses to be part of the rule- Returns:
- this, for having fluent api
-
imports
Setting module import definition for the rule.
For module import functionality works you need to use parameter
-javaagent modules:
. The only provided implementation class which is to manage module imports isorg.jboss.byteman.modules.jbossmodules.JbossModulesSystem
- Parameters:
imports
- specifying imports clauses which will be added to byteman rule configuration- Returns:
- this, for having fluent api
-
compile
Defines rule for being compiled.
Default behaviour is to use the interpreter.
- Returns:
- this, for having fluent api
-
nocompile
Defines rule for not being compiled.
Default behaviour is to use the interpreter but byteman system property could be used to change the default behaviour for rules being compiled every time then this settings could be useful.
- Returns:
- this, for having fluent api
-
ifCondition
Rule condition when rule will be executed.
Defined string is directly used in rule definition.
Rule condition is set as
IF <condition>
.- Parameters:
condition
- rule condition string that is used for the rule- Returns:
- this, for having fluent api
-
ifTrue
Condition ensuring that rule will be executed.
Rule condition is set as
IF true
.- Returns:
- this, for having fluent api
-
ifFalse
Condition ensuring that rule won't be executed.
Rule condition is set as
IF false
.- Returns:
- this, for having fluent api
-