Interface StaticFinalFieldMatchProcessor

  • Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public interface StaticFinalFieldMatchProcessor
    The method to run when a class with the matching class name and with a final static field with the matching field name is found on the classpath. The constant value of the final static field is obtained directly from the constant pool of the classfile. See the documentation here:

    https://github.com/lukehutch/fast-classpath-scanner/wiki/3.5.-Reading-constant-initializer-values-of-static-final-fields

    • Method Detail

      • processMatch

        void processMatch​(String className,
                          String fieldName,
                          Object fieldConstantValue)
        Process a static final field match.
        Parameters:
        className - The class name, e.g. "com.package.ClassName".
        fieldName - The field name, e.g. "STATIC_FIELD_NAME".
        fieldConstantValue - The field's constant literal value, read directly from the classfile's constant pool.