001package com.identityworksllc.iiq.common.plugin; 002 003/** 004 * A functional interface to handle plugin validation. 005 * 006 * @see BaseCommonPluginResource#validate(PluginValidationCheck) 007 * @see BaseCommonPluginResource#validate(String, PluginValidationCheck) 008 */ 009@FunctionalInterface 010public interface PluginValidationCheck { 011 /** 012 * Executes some validation check, returning true if the check passes 013 * 014 * @return True if the check passes, false otherwise 015 * @throws Exception if anything goes wrong (also considered a failure) 016 */ 017 boolean test() throws Exception; 018}