use of org.eclipse.scout.rt.platform.classid.ClassIdentifier in project scout.rt by eclipse.
the class ExtensionScope method resolveRegistryItems.
/**
* Returns a set of resolved registry items for the given scope items.
*
* @param scopeItems
* @return
*/
public Set<T> resolveRegistryItems(Set<ScopeItem> scopeItems) {
if (CollectionUtility.isEmpty(scopeItems)) {
return Collections.emptySet();
}
Set<T> collector = new TreeSet<T>(new P_ExtensionRegistryItemComparator());
for (ScopeItem scopeItem : scopeItems) {
ClassIdentifier classIdentifier = scopeItem.getIdentifier();
if (!scopeItem.isLastSegment()) {
continue;
}
List<T> localExtensions = m_extensionItems.get(classIdentifier);
if (CollectionUtility.hasElements(localExtensions)) {
collector.addAll(localExtensions);
}
}
return collector;
}
Aggregations