Interface Policy

  • All Known Implementing Classes:
    CheckCallerRunsPolicy, CheckForAbsenceOfRED

    public interface Policy
    A policy implementation checks that a condition is met or throws an exception if not. A condition could be for example the check if a given protocol is present, an attribute is within a given range etc.
    Policies are called after Protocol.init(), so the protocol is full initialized (all attrs and components are set).
    Since:
    5.2.14
    Author:
    Bela Ban
    • Method Detail

      • check

        void check​(Protocol prot)
            throws java.lang.Exception
        Checks that a condition is met in a given protocol
        Parameters:
        prot - The protocol in which the policy is run
        Throws:
        java.lang.Exception - Thrown if the condition is not met