Interface ClassFinder

All Known Implementing Classes:
ReflectiveClassFinder

public interface ClassFinder
ClassFinders provide instances of Class that will be scanned for Interactions
  • Method Summary

    Modifier and Type
    Method
    Description
    static @NotNull ClassFinder
    explicit(@NotNull Class<?>... classes)
    This provides an array backed implementation of ClassFinder that just returns the explicitly stated classes.
    @NotNull Iterable<Class<?>>
     
    static @NotNull ClassFinder
    reflective(@NotNull Class<?> baseClass, @NotNull String... packages)
    This provides a reflections based implementation of ClassFinder
  • Method Details

    • find

      @NotNull @NotNull Iterable<Class<?>> find()
      Returns:
      the classes to be searched for Interaction
    • reflective

      @NotNull static @NotNull ClassFinder reflective(@NotNull @NotNull Class<?> baseClass, @NotNull @NotNull String... packages)
      This provides a reflections based implementation of ClassFinder
      Parameters:
      baseClass - The Class providing the used ClassLoader
      packages - a list of packages that should be scanned
    • explicit

      @NotNull static @NotNull ClassFinder explicit(@NotNull @NotNull Class<?>... classes)
      This provides an array backed implementation of ClassFinder that just returns the explicitly stated classes.
      Parameters:
      classes - the classes to be scanned