Class CompositeIndex
java.lang.Object
org.jboss.as.server.deployment.annotation.CompositeIndex
Composite annotation index. Represents an annotation index for an entire deployment.
- Author:
- John Bailey
-
Constructor Summary
ConstructorsConstructorDescriptionCompositeIndex(Collection<org.jboss.jandex.Index> indexes) CompositeIndex(CompositeIndex... indexes) -
Method Summary
Modifier and TypeMethodDescriptionSet<org.jboss.jandex.ClassInfo>getAllKnownImplementors(org.jboss.jandex.DotName interfaceName) Returns all known classes that implement the given interface, directly and indirectly.Set<org.jboss.jandex.ClassInfo>getAllKnownSubclasses(org.jboss.jandex.DotName className) Returns all known subclasses of the given class, even non-direct sub classes.List<org.jboss.jandex.AnnotationInstance>getAnnotations(org.jboss.jandex.DotName annotationName) org.jboss.jandex.ClassInfogetClassByName(org.jboss.jandex.DotName className) Collection<org.jboss.jandex.Index>Collection<org.jboss.jandex.ClassInfo>Set<org.jboss.jandex.ClassInfo>getKnownDirectImplementors(org.jboss.jandex.DotName className) Set<org.jboss.jandex.ClassInfo>getKnownDirectSubclasses(org.jboss.jandex.DotName className)
-
Constructor Details
-
CompositeIndex
-
CompositeIndex
-
-
Method Details
-
getAnnotations
public List<org.jboss.jandex.AnnotationInstance> getAnnotations(org.jboss.jandex.DotName annotationName) -
getKnownDirectSubclasses
-
getAllKnownSubclasses
Returns all known subclasses of the given class, even non-direct sub classes. (i.e. it returns all known classes that are assignable to the given class);- Parameters:
className- The class- Returns:
- All known subclasses
-
getKnownDirectImplementors
public Set<org.jboss.jandex.ClassInfo> getKnownDirectImplementors(org.jboss.jandex.DotName className) -
getAllKnownImplementors
public Set<org.jboss.jandex.ClassInfo> getAllKnownImplementors(org.jboss.jandex.DotName interfaceName) Returns all known classes that implement the given interface, directly and indirectly. This will all return classes that implement sub interfaces of the interface, and sub classes of classes that implement the interface. (In short, it will return every class that is assignable to the interface that is found in the index) This will only return classes, not interfaces.- Parameters:
interfaceName- The interface- Returns:
- All known implementors of the interface
-
getClassByName
public org.jboss.jandex.ClassInfo getClassByName(org.jboss.jandex.DotName className) -
getKnownClasses
-
getIndexes
-