private Parameters getExportedByAnnotation() { TypeRef exportAnnotation = descriptors.getTypeRefFromFQN("org.osgi.annotation.bundle.Export"); return contained.keySet() .stream() .map(this::getPackageInfo) .filter(Objects::nonNull) .distinct() .filter(clz -> clz.annotations() .contains(exportAnnotation)) .map(Clazz::getClassName) .map(TypeRef::getPackageRef) .map(PackageRef::getFQN) .collect(Parameters.toParameters()); }
private Parameters getExportedByAnnotation() { TypeRef exportAnnotation = descriptors.getTypeRefFromFQN("org.osgi.annotation.bundle.Export"); return contained.keySet() .stream() .map(this::getPackageInfo) .filter(Objects::nonNull) .distinct() .filter(clz -> clz.annotations() .contains(exportAnnotation)) .map(Clazz::getClassName) .map(TypeRef::getPackageRef) .map(PackageRef::getFQN) .collect(Parameters.toParameters()); }