public class RulesEnricher
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private Event<EnrichmentEvent> |
enrichmentEvent |
private static java.util.logging.Logger |
log |
private Instance<ServiceLoader> |
serviceLoader |
Constructor and Description |
---|
RulesEnricher() |
Modifier and Type | Method and Description |
---|---|
void |
enrich(BeforeRules event) |
private java.util.List<java.lang.Object> |
getRuleInstances(BeforeRules event)
Retrieves instances of the TestRule and MethodRule classes
|
private boolean |
isRule(java.lang.Object instance)
Decides whether the instance is a Rule or not
|
@Inject private Instance<ServiceLoader> serviceLoader
@Inject private Event<EnrichmentEvent> enrichmentEvent
private static java.util.logging.Logger log
public void enrich(@Observes BeforeRules event) throws java.lang.Exception
java.lang.Exception
private java.util.List<java.lang.Object> getRuleInstances(BeforeRules event) throws java.lang.Exception
java.lang.Exception
private boolean isRule(java.lang.Object instance)