Interface ClassNavigator<A extends java.lang.annotation.Annotation,​T>

Type Parameters:
A - The annotation that classes must have in other to be accept by the navigator.
T - The type for the component that will be accepted by this navigator.
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 ClassNavigator<A extends java.lang.annotation.Annotation,​T>
Functional interface used by ClassRepository for navigating annotated classes in the inversion of control context.

Author:
Gilberto Vento
  • Method Summary

    Modifier and Type Method Description
    void accept​(java.lang.Class<T> component, A annotation)
    This method is call when ever a class if found to have the given annotation.
  • Method Details

    • accept

      void accept​(java.lang.Class<T> component, A annotation)
      This method is call when ever a class if found to have the given annotation.
      Parameters:
      component - The class of the component found.
      annotation - The instance of the annotation of the component.