Class FilterRegistry<ItemType,​PersistType>


  • public class FilterRegistry<ItemType,​PersistType>
    extends Object
    Holds a list of filters for a type of form processor.

    Each filter is called before and after the processor generates and persists the form, thus allowing the form and the effected objects to be manipulated prior to generation or persistence or after the fact.

    Each filter is responsible for determing whether it applies to the item being processed.

    Author:
    Gavin Cornwell
    See Also:
    Filter
    • Constructor Detail

      • FilterRegistry

        public FilterRegistry()
        Constructs the registry
    • Method Detail

      • addFilter

        public void addFilter​(Filter<ItemType,​PersistType> filter)
        Registers a filter
        Parameters:
        filter - The Filter to regsiter