Using Declarative Global Validation Rules
As you saw in the previous slides, ADF Business Components comes with a base set of built-in declarative validation rules. However one of the most powerful features of the validator architecture is that you can create your own programmatic validation rules. When you realize that you are writing the same kind of validation code over and over again, you can build a validation rule class that captures this validation “pattern”. After you have defined a validation rule class, it is as simple to use as any of the built-in rules.
For easier reuse of your custom validation rules, you can package them into a JAR file for reference by applications that make use of the rules.
The slides that follow describe each of the steps involved in the process of creating and using your own declarative validation rules.