Interface ClassInfoStrategy

  • All Known Implementing Classes:
    AbstractClassInfoStrategy, DefaultClassInfoStrategy

    public interface ClassInfoStrategy
    This interface defines the contact for PODAM class info introspection.

    It provides a tool for customization of class introspection process.

    Since:
    5.1.0
    Author:
    daivanov
    • Method Detail

      • getExcludedAnnotations

        Set<Class<? extends Annotation>> getExcludedAnnotations()
        Identifies Annotations for fields to be skipped.

        Should return set of annotations, which will be treated as notion for PodamFactory to skip production of these particular fields.

        Returns:
        set of annotations, which mark fields to be skipped from populating.
      • getExcludedFields

        Set<String> getExcludedFields​(Class<?> pojoClass)
        Identifies fields to be skipped.

        Should return set of field names as case-sensitive string, which will be treated as notion for PodamFactory to skip production of these particular fields.

        Parameters:
        pojoClass - a class for which fields should be skipped
        Returns:
        set of field name, which mark fields to be skipped from populating.
      • getClassInfo

        ClassInfo getClassInfo​(Class<?> pojoClass)
        Parameters:
        pojoClass - a class to introspect and fetch attributes
        Returns:
        information about class internal structure ClassInfo
      • getExtraMethods

        Collection<Method> getExtraMethods​(Class<?> pojoClass)
        It returns the collection of extra methods to execute.
        Parameters:
        pojoClass - The pojo class
        Returns:
        the collection of extra methods to execute.
        Since:
        5.3.0