Annotation Type Properties.Probe


  • @Target(METHOD)
    @Retention(RUNTIME)
    public static @interface Properties.Probe
    Declares a method to be a probe. Probes are returned by Properties.getProbes(). Probe methods must not be static and must have no parameters.

    A probe may throw a ProbeAbortedException to indicate, that this probe has been aborted because one of its preconditions is not fulfilled. This may happen, if the probe depends on something that does not exist in this properties instance.

    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      String name
      Specifies the name of the test.
    • Element Detail

      • name

        String name
        Specifies the name of the test. Defaults to the name of the method, stripped of prefix "probe" if present. Names must be unique within a class.
        Default:
        ""