All rules used by Roolie must implement this interface.
In general, a Rule will be responsible for evaluating a "bite-sized" aspect of an application (i.e. Is a number in a given range? Is a user logged in?). These rules can be chained together with other rules to build more complex rules using the configuration file, although they may be used individually as well.
Rule implementation class requirements:
java.lang.String
or java.util.List<String>
(Of course you may parse them to whatever data type you wish when you use those values).
|
|