Interface ReferenceProvider

  • @ConsumerType
    public interface ReferenceProvider
    A ReferenceProvider provides References of a ReferenceList. Implementations must register themselves as an OSGi-component and declare themselves as a service on this interface. This way the reference aggregator service is able to dynamically use available providers to retrieve references for a given Resource. References are provided via getReferences(Resource).
    • Method Detail

      • getReferences

        List<Reference> getReferences​(Resource resource)
        Provides a Collection of References for the given resource.
        resource - The Resource for which to return References.
        A List of References or an empty list if the provider did not find/generate any reference items.
      • getType

        String getType()
        Returns the type of references this provider provides.
        The type of references this provider provides.