Interface OriginatingElements

All Known Subinterfaces:
BeanDefinitionVisitor, ProxyingBeanDefinitionVisitor
All Known Implementing Classes:
AbstractAnnotationMetadataWriter, AbstractClassFileWriter, AnnotationMetadataWriter, AopProxyWriter, BeanConfigurationWriter, BeanDefinitionWriter, DispatchWriter, EvaluatedExpressionWriter, ExecutableMethodsDefinitionWriter, StaticOriginatingElements

public interface OriginatingElements
Interface for types that provide originating elements.
Since:
2.1.1
Author:
graemerocher
  • Method Details

    • getOriginatingElements

      @NonNull @NonNull Element[] getOriginatingElements()
      Returns:
      The elements where the bean definition originated from as an array.
      Since:
      2.1.1
    • addOriginatingElement

      void addOriginatingElement(@NonNull @NonNull Element element)
      Add another element that should be included in the originating elements.
      Parameters:
      element - The element to add
      Since:
      2.1.1
    • of

      static OriginatingElements of(Element... elements)
      Factory to create the originating elements.
      Parameters:
      elements - The elements
      Returns:
      The originating elements