Class Condition.ClassAvailability

  • All Implemented Interfaces:
    Condition
    Enclosing interface:
    Condition

    public static class Condition.ClassAvailability
    extends Object
    implements Condition
    check the availability of a class as a precondition for a console module
    • Field Detail

      • LOG

        public static final org.slf4j.Logger LOG
      • pattern

        protected final String pattern
    • Constructor Detail

      • ClassAvailability

        public ClassAvailability​(@NotNull
                                 @NotNull String pattern)
    • Method Detail

      • accept

        public boolean accept​(@NotNull
                              @NotNull BeanContext context,
                              @NotNull
                              @NotNull org.apache.sling.api.resource.Resource resource)
        Description copied from interface: Condition
        check the configured condition for the given resource
        Specified by:
        accept in interface Condition