Class AnnotationComponentGleaner
java.lang.Object
org.codehaus.plexus.metadata.gleaner.ComponentGleanerSupport
org.codehaus.plexus.metadata.gleaner.AnnotationComponentGleaner
- All Implemented Interfaces:
ClassComponentGleaner
public class AnnotationComponentGleaner
extends ComponentGleanerSupport
implements ClassComponentGleaner
A class component gleaner which inspects each type for
org.codehaus.plexus.component.annotations.* annotations
and when found translates them into a ComponentDescriptor.-
Field Summary
FieldsFields inherited from interface org.codehaus.plexus.metadata.gleaner.ClassComponentGleaner
ROLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate org.codehaus.plexus.configuration.PlexusConfigurationfindConfiguration(AnnField field, AnnClass c, ClassLoader cl) private org.codehaus.plexus.component.repository.ComponentRequirementfindRequirement(AnnField field, AnnClass annClass, ClassLoader cl) getClasses(AnnClass annClass, ClassLoader cl) Returns a list of all of the classes which the given type inherits from.org.codehaus.plexus.component.repository.ComponentDescriptor<?> glean(String className, ClassLoader cl) private AnnClassreadClass(String className, ClassLoader cl) private AnnClassreadClass2(String className, ClassLoader cl) Methods inherited from class org.codehaus.plexus.metadata.gleaner.ComponentGleanerSupport
addChildConfiguration, deHump, filterEmptyAsNull, isRequirementListType
-
Field Details
-
OBJECT_SLASHED_NAME
-
-
Constructor Details
-
AnnotationComponentGleaner
public AnnotationComponentGleaner()
-
-
Method Details
-
glean
public org.codehaus.plexus.component.repository.ComponentDescriptor<?> glean(String className, ClassLoader cl) throws ComponentGleanerException - Specified by:
gleanin interfaceClassComponentGleaner- Throws:
ComponentGleanerException
-
readClass
- Throws:
ComponentGleanerException
-
readClass2
- Throws:
ComponentGleanerException
-
getClasses
private List<AnnClass> getClasses(AnnClass annClass, ClassLoader cl) throws ComponentGleanerException Returns a list of all of the classes which the given type inherits from.- Throws:
ComponentGleanerException
-
findRequirement
private org.codehaus.plexus.component.repository.ComponentRequirement findRequirement(AnnField field, AnnClass annClass, ClassLoader cl) throws ComponentGleanerException - Throws:
ComponentGleanerException
-
findConfiguration
private org.codehaus.plexus.configuration.PlexusConfiguration findConfiguration(AnnField field, AnnClass c, ClassLoader cl)
-