modules/jooby-scanner/src/main/java/org/jooby/scanner/Scanner.java
public Scanner scan(final Class<?> type) {
    // standard vs guice annotations
    if (type == Named.class || type == com.google.inject.name.Named.class) {
      serviceTypes.add(Named.class);
      serviceTypes.add(com.google.inject.name.Named.class);
    } else if (type == Singleton.class || type == com.google.inject.Singleton.class) {
      serviceTypes.add(Singleton.class);
      serviceTypes.add(com.google.inject.Singleton.class);
    } else {
      serviceTypes.add(type);
    }
    return this;
  }
public Scanner scan(final Class<?> type) {
    // standard vs guice annotations
    if (type == Named.class || type == com.google.inject.name.Named.class) {
      serviceTypes.add(Named.class);
      serviceTypes.add(com.google.inject.name.Named.class);
    } else if (type == Singleton.class || type == com.google.inject.Singleton.class) {
      serviceTypes.add(Singleton.class);
      serviceTypes.add(com.google.inject.Singleton.class);
    } else {
      serviceTypes.add(type);
    }
    return this;
  }
Add a scan criteria like an annotation, interface or class.

@param type A scan criteria/type.
@return This module.