Errai 3.0.1-SNAPSHOT

org.jboss.errai.common.metadata
Class GWTMetaDataScanner

java.lang.Object
  extended by org.jboss.errai.reflections.ReflectionUtils
      extended by org.jboss.errai.reflections.Reflections
          extended by org.jboss.errai.common.metadata.MetaDataScanner
              extended by org.jboss.errai.common.metadata.GWTMetaDataScanner

public class GWTMetaDataScanner
extends MetaDataScanner

Author:
Mike Brock

Nested Class Summary
 
Nested classes/interfaces inherited from class org.jboss.errai.common.metadata.MetaDataScanner
MetaDataScanner.CacheHolder
 
Field Summary
 
Fields inherited from class org.jboss.errai.common.metadata.MetaDataScanner
ERRAI_CONFIG_STUB_NAME
 
Fields inherited from class org.jboss.errai.reflections.Reflections
configuration
 
Fields inherited from class org.jboss.errai.reflections.ReflectionUtils
primitiveDescriptors, primitiveNames, primitiveTypes
 
Constructor Summary
GWTMetaDataScanner(List<URL> urls)
           
 
Method Summary
 Set<Field> getFieldsAnnotatedWith(Class<? extends Annotation> annotation, Collection<String> packages)
           
 Set<Method> getMethodsAnnotatedWith(Class<? extends Annotation> annotation, Collection<String> packages)
           
 Set<Class<?>> getTypesAnnotatedWith(Class<? extends Annotation> annotation)
          get types annotated with a given annotation, both classes and annotations
 Set<Class<?>> getTypesAnnotatedWith(Class<? extends Annotation> annotation, Collection<String> packages)
           
 Set<Class<?>> getTypesAnnotatedWithExcluding(Class<? extends Annotation> annotation, String excludeRegex)
           
 
Methods inherited from class org.jboss.errai.common.metadata.MetaDataScanner
createInstance, createInstance, getConfigUrls, getConfigUrls, getErraiProperties, getHashForTypesAnnotatedWith, getMethodsAnnotatedWithExcluding, registerTypeHandler
 
Methods inherited from class org.jboss.errai.reflections.Reflections
collect, collect, collect, collect, collect, getConverters, getFieldsAnnotatedWith, getFieldsAnnotatedWith, getMethodsAnnotatedWith, getMethodsAnnotatedWith, getMethodsWithAnyParamAnnotated, getResources, getResources, getStore, getSubTypesOf, getTypesAnnotatedWith, getTypesAnnotatedWith, getTypesAnnotatedWith, merge, save, save, scan
 
Methods inherited from class org.jboss.errai.reflections.ReflectionUtils
areAnnotationMembersMatching, areAnnotationMembersMatching, forName, forNames, getAllSuperTypes, getAllSuperTypesAnnotatedWith, getMatchingAnnotations
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GWTMetaDataScanner

public GWTMetaDataScanner(List<URL> urls)
Method Detail

getTypesAnnotatedWith

public Set<Class<?>> getTypesAnnotatedWith(Class<? extends Annotation> annotation)
Description copied from class: Reflections
get types annotated with a given annotation, both classes and annotations

Inherited is honored

Note that this (@Inherited) meta-annotation type has no effect if the annotated type is used for anything other than a class. Also, this meta-annotation causes annotations to be inherited only from superclasses; annotations on implemented interfaces have no effect.

depends on TypeAnnotationsScanner and SubTypesScanner configured, otherwise an empty set is returned

Overrides:
getTypesAnnotatedWith in class MetaDataScanner

getFieldsAnnotatedWith

public Set<Field> getFieldsAnnotatedWith(Class<? extends Annotation> annotation,
                                         Collection<String> packages)
Overrides:
getFieldsAnnotatedWith in class MetaDataScanner

getMethodsAnnotatedWith

public Set<Method> getMethodsAnnotatedWith(Class<? extends Annotation> annotation,
                                           Collection<String> packages)
Overrides:
getMethodsAnnotatedWith in class MetaDataScanner

getTypesAnnotatedWith

public Set<Class<?>> getTypesAnnotatedWith(Class<? extends Annotation> annotation,
                                           Collection<String> packages)
Overrides:
getTypesAnnotatedWith in class MetaDataScanner

getTypesAnnotatedWithExcluding

public Set<Class<?>> getTypesAnnotatedWithExcluding(Class<? extends Annotation> annotation,
                                                    String excludeRegex)
Overrides:
getTypesAnnotatedWithExcluding in class MetaDataScanner

Errai 3.0.1-SNAPSHOT

Copyright © 2013-2014 JBoss, a division of Red Hat. All Rights Reserved.