io.vertx.up.uca.web.origin.EndPointInquirer Maven / Gradle / Ivy
package io.vertx.up.uca.web.origin;
import io.vertx.up.annotations.EndPoint;
import io.vertx.up.eon.Info;
import io.vertx.up.log.Annal;
import java.util.Set;
import java.util.stream.Collectors;
/**
*
*/
public class EndPointInquirer implements Inquirer>> {
private static final Annal LOGGER = Annal.get(EndPointInquirer.class);
@Override
public Set> scan(final Set> clazzes) {
final Set> endpoints = clazzes.stream()
.filter((item) -> item.isAnnotationPresent(EndPoint.class))
.collect(Collectors.toSet());
LOGGER.info(Info.SCANED_ENDPOINT, endpoints.size());
return endpoints;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy