@Retention(value=RUNTIME)
@Target(value=TYPE)
@Component
@Scope(value="prototype")
public @interface RuleBean
RuleBean is an annotation that allows POJO rules to be Spring aware.
This should be used to annotate POJOs that can be converted to Rules using
SpringAwareRuleBookRunner
and that are expected to be injected
using Spring.
Alternatively, the annotations below could be added to a POJO Rule. The annotations below are required to properly scope Spring POJO Rules. This annotation exists as a simplification and because there is no way to extend Java annotations.