Package com.adobe.granite.references
Interface ReferenceAggregator
The
ReferenceAggregator is an OSGi-service providing creation of References
for the given resource.
The service can be obtained from the OSGi service registry via the interface.- Since:
- 1.0
-
Method Summary
Modifier and TypeMethodDescriptioncreateReferenceList(Resource resource) Create aReferenceListfor the givenresource.createReferenceList(Resource resource, String... types) Create aReferenceListfor the givenresource.getTypes()Returns a set of all known references types.
-
Method Details
-
createReferenceList
Create aReferenceListfor the givenresource.- Parameters:
resource- TheResourcefor which to create aReferenceList.- Returns:
- The
ReferenceList.
-
createReferenceList
Create aReferenceListfor the givenresource.- Parameters:
resource- TheResourcefor which to create aReferenceList.types- An array ofStrings corresponding to references types to consider.- Returns:
- The
ReferenceList.
-
getTypes
Returns a set of all known references types. The types are provided by the registeredReferenceProviders.- Returns:
- A
Setof references types and their keys (names) - or an empty set if no providers are registered.
-