Package org.jboss.errai.reflections.util

Examples of org.jboss.errai.reflections.util.SimplePackageFilter


    ValidationScanner() {
      super(new ConfigurationBuilder().setUrls(ClasspathHelper.forClassLoader())
        .setScanners(
            new FilterTypeAnnotationsScanner(
                    new SimplePackageFilter(PropertiesUtil.getPropertyValues(BLACKLIST_PROPERTY, "\\s"))),
            new FilterFieldAnnotationsScanner(
                    new SimplePackageFilter(PropertiesUtil.getPropertyValues(BLACKLIST_PROPERTY, "\\s")))));
      scan();
    }
View Full Code Here


    final SetMultimap<MetaClass, Annotation> validationConfig = getValidationConfig(allConstraints, context);
    final Set<Class<?>> beans = extractValidatableBeans(validationConfig.keySet(), context);
    final Set<Class<?>> groups = extractValidationGroups(validationConfig);
   
    final Set<Class<?>> filteredBeans = new HashSet<Class<?>>();
    SimplePackageFilter filter = new SimplePackageFilter(PropertiesUtil.getPropertyValues(BLACKLIST_PROPERTY, " "));
    for (Class<?> bean : beans) {
      if (!filter.apply(bean.getName())) {
        filteredBeans.add(bean);
      }
    }
   
    if (filteredBeans.isEmpty() || groups.isEmpty()) {
View Full Code Here

  public boolean isWhitelisted(final MetaClass type) {
    if (whitelist.isEmpty()) {
      return true;
    }

    final SimplePackageFilter implicitFilter = new SimplePackageFilter(Arrays.asList(implicitWhitelist));
    final SimplePackageFilter whitelistFilter = new SimplePackageFilter(whitelist);
    final String fullName = type.getFullyQualifiedName();
   
    return implicitFilter.apply(fullName) || whitelistFilter.apply(fullName);
  }
View Full Code Here

   
    return implicitFilter.apply(fullName) || whitelistFilter.apply(fullName);
  }

  public boolean isBlacklisted(final MetaClass type) {
    final SimplePackageFilter blacklistFilter = new SimplePackageFilter(blacklist);
    final String fullName = type.getFullyQualifiedName();
   
    return blacklistFilter.apply(fullName);
  }
View Full Code Here

  public boolean isWhitelisted(final MetaClass type) {
    if (whitelist.isEmpty()) {
      return true;
    }

    final SimplePackageFilter implicitFilter = new SimplePackageFilter(Arrays.asList(implicitWhitelist));
    final SimplePackageFilter whitelistFilter = new SimplePackageFilter(whitelist);
    final String fullName = type.getFullyQualifiedName();
   
    return implicitFilter.matches(fullName) || whitelistFilter.matches(fullName);
  }
View Full Code Here

   
    return implicitFilter.matches(fullName) || whitelistFilter.matches(fullName);
  }

  public boolean isBlacklisted(final MetaClass type) {
    final SimplePackageFilter blacklistFilter = new SimplePackageFilter(blacklist);
    final String fullName = type.getFullyQualifiedName();
   
    return blacklistFilter.matches(fullName);
  }
View Full Code Here

  public boolean isWhitelisted(final MetaClass type) {
    if (whitelist.isEmpty()) {
      return true;
    }

    final SimplePackageFilter implicitFilter = new SimplePackageFilter(Arrays.asList(implicitWhitelist));
    final SimplePackageFilter whitelistFilter = new SimplePackageFilter(whitelist);
    final String fullName = type.getFullyQualifiedName();
   
    return implicitFilter.matches(fullName) || whitelistFilter.matches(fullName);
  }
View Full Code Here

   
    return implicitFilter.matches(fullName) || whitelistFilter.matches(fullName);
  }

  public boolean isBlacklisted(final MetaClass type) {
    final SimplePackageFilter blacklistFilter = new SimplePackageFilter(blacklist);
    final String fullName = type.getFullyQualifiedName();
   
    return blacklistFilter.matches(fullName);
  }
View Full Code Here

  public boolean isWhitelisted(final MetaClass type) {
    if (whitelist.isEmpty()) {
      return true;
    }

    final SimplePackageFilter implicitFilter = new SimplePackageFilter(Arrays.asList(implicitWhitelist));
    final SimplePackageFilter whitelistFilter = new SimplePackageFilter(whitelist);
    final String fullName = type.getFullyQualifiedName();
   
    return implicitFilter.matches(fullName) || whitelistFilter.matches(fullName);
  }
View Full Code Here

   
    return implicitFilter.matches(fullName) || whitelistFilter.matches(fullName);
  }

  public boolean isBlacklisted(final MetaClass type) {
    final SimplePackageFilter blacklistFilter = new SimplePackageFilter(blacklist);
    final String fullName = type.getFullyQualifiedName();
   
    return blacklistFilter.matches(fullName);
  }
View Full Code Here

TOP

Related Classes of org.jboss.errai.reflections.util.SimplePackageFilter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.