Class RuleRegistry
- java.lang.Object
-
- org.openjdk.jmc.flightrecorder.rules.RuleRegistry
-
public class RuleRegistry extends java.lang.Object
Registry for rules. Uses Java Service Loader to discover implementations of theIRule
interface.In order to add a new rule to the registry, create a new IRule implementation and add its fully qualified class name in a file named META-INF/services/org.openjdk.jmc.flightrecorder.rules.IRule (one line per class).
-
-
Constructor Summary
Constructors Modifier Constructor Description private
RuleRegistry()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description private static void
add(IRule rule, java.util.Map<java.lang.String,IRule> rulesById)
private static java.util.logging.Logger
getLogger()
static java.util.Collection<IRule>
getRules()
-
-
-
Field Detail
-
RULES
private static final java.util.Collection<IRule> RULES
-
-