Package com.adobe.granite.references
Interface ReferenceAggregator
-
@ProviderType public interface ReferenceAggregator
TheReferenceAggregator
is an OSGi-service providing creation ofReference
s for the given resource. The service can be obtained from the OSGi service registry via the interface.- Since:
- 1.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ReferenceList
createReferenceList(Resource resource)
Create aReferenceList
for the givenresource
.ReferenceList
createReferenceList(Resource resource, java.lang.String... types)
Create aReferenceList
for the givenresource
.java.util.Set<java.lang.String>
getTypes()
Returns a set of all known references types.
-
-
-
Method Detail
-
createReferenceList
ReferenceList createReferenceList(Resource resource)
Create aReferenceList
for the givenresource
.- Parameters:
resource
- TheResource
for which to create aReferenceList
.- Returns:
- The
ReferenceList
.
-
createReferenceList
ReferenceList createReferenceList(Resource resource, java.lang.String... types)
Create aReferenceList
for the givenresource
.- Parameters:
resource
- TheResource
for which to create aReferenceList
.types
- An array ofString
s corresponding to references types to consider.- Returns:
- The
ReferenceList
.
-
getTypes
java.util.Set<java.lang.String> getTypes()
Returns a set of all known references types. The types are provided by the registeredReferenceProvider
s.- Returns:
- A
Set
of references types and their keys (names) - or an empty set if no providers are registered.
-
-