@Override public Collection<URI> getDefiningURIs() { return cur.getDefiningURIs(); }
/** * Given the set of annotations that comprise Hk2, as well as the provided classpath / files to * introspect, return the set of URIs that actually reference something of "significant value" * pertaining to habitat creation. */ private Set<URI> getSignificantURIReferences() { LinkedHashSet<URI> result = new LinkedHashSet<URI>(); Types types = context.getTypes(); for (String annotation : context.getConfig().getTypesOfInterest()) { AnnotationType atype = (AnnotationType) types.getBy(annotation); if (null != atype) { Collection<AnnotatedElement> coll = atype.allAnnotatedTypes(); for (AnnotatedElement ae : coll) { Type type = types.getBy(ae.getName()); if (null != type) { for (URI uri : type.getDefiningURIs()) { try { result.add(new File(uri).getCanonicalFile().toURI()); } catch (IOException e) { throw new RuntimeException(e); } } } } } } return Collections.unmodifiableSet(result); }
/** * Given the set of annotations that comprise Hk2, as well as the provided classpath / files to * introspect, return the set of URIs that actually reference something of "significant value" * pertaining to habitat creation. */ private Set<URI> getSignificantURIReferences() { LinkedHashSet<URI> result = new LinkedHashSet<URI>(); Types types = context.getTypes(); for (String annotation : context.getConfig().getTypesOfInterest()) { AnnotationType atype = (AnnotationType) types.getBy(annotation); if (null != atype) { Collection<AnnotatedElement> coll = atype.allAnnotatedTypes(); for (AnnotatedElement ae : coll) { Type type = types.getBy(ae.getName()); if (null != type) { for (URI uri : type.getDefiningURIs()) { try { result.add(new File(uri).getCanonicalFile().toURI()); } catch (IOException e) { throw new RuntimeException(e); } } } } } } return Collections.unmodifiableSet(result); }