All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.vertx.up.uca.web.origin.WorkerInquirer Maven / Gradle / Ivy

There is a newer version: 0.9.0
Show newest version
package io.vertx.up.uca.web.origin;

import io.vertx.up.annotations.Worker;

import java.util.Set;
import java.util.stream.Collectors;

/**
 *
 */
public class WorkerInquirer implements Inquirer>> {

    @Override
    public Set> scan(final Set> classes) {
        return classes.stream()
            .filter((item) -> item.isAnnotationPresent(Worker.class))
            .collect(Collectors.toSet());
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy