/** * Returns a new {@link RuleBuilder} instance, set with the given {@link Rule} ID. */ public static RuleBuilder define(final String id) { return define().withId(id); }
/** * Returns a new {@link RuleBuilder} instance, set with the given {@link Rule} ID. */ public static RuleBuilder define(final String id) { return define().withId(id); }
@Override public ConfigurationRuleBuilder withId(String id) { for (ConfigurationRuleBuilderInterceptor interceptor : interceptors) { id = interceptor.withId(id); } rule.withId(id); return this; }
@Override public ConfigurationRuleBuilder withId(String id) { for (ConfigurationRuleBuilderInterceptor interceptor : interceptors) { id = interceptor.withId(id); } rule.withId(id); return this; }
@Override public void process(ClassContext context, Rule annotation, HandlerChain chain) { context.getRuleBuilder().withId(annotation.value()); chain.proceed(); }
@Override public void process(ClassContext context, Rule annotation, HandlerChain chain) { context.getRuleBuilder().withId(annotation.value()); chain.proceed(); }
private RuleBuilder(Rule rule) { store = new DefaultParameterStore(); withId(rule.getId()); if (rule instanceof Weighted) withPriority(((Weighted) rule).priority()); wrapped = rule; }
private RuleBuilder(Rule rule) { store = new DefaultParameterStore(); withId(rule.getId()); if (rule instanceof Weighted) withPriority(((Weighted) rule).priority()); wrapped = rule; }
((RuleBuilder) rule).withId(generatedRuleID(provider, rule, i));
((RuleBuilder) rule).withId(generatedRuleID(provider, rule, i));