Class DescriptorGenerator
java.lang.Object
org.apache.felix.dm.annotation.plugin.bnd.DescriptorGenerator
This helper parses all classes which contain DM annotations, and generates the corresponding component descriptors.
- Author:
- Felix Project Team
-
Constructor Summary
ConstructorsConstructorDescriptionDescriptorGenerator(aQute.bnd.osgi.Analyzer analyzer, Logger logger) Creates a new descriptor generator. -
Method Summary
Modifier and TypeMethodDescriptionbooleanexecute()Starts the scanning.Returns the path of the descriptor.Returns the list of the generated descriptors.Returns set of all exported services.Returns set of all imported services.aQute.bnd.osgi.ResourceReturns the MetaType resource.
-
Constructor Details
-
DescriptorGenerator
Creates a new descriptor generator.- Parameters:
analyzer- The bnd analyzer used to lookup classes containing DM annotations.debug-
-
-
Method Details
-
execute
Starts the scanning.- Returns:
- true if some annotations were successfully parsed, false if not. corresponding generated descriptors can then be retrieved by invoking the getDescriptors/getDescriptorPaths methods.
- Throws:
Exception
-
getDescriptorPaths
Returns the path of the descriptor.- Returns:
- the path of the generated descriptors.
-
getDescriptors
Returns the list of the generated descriptors.- Returns:
- the list of the generated descriptors.
-
getMetaTypeResource
public aQute.bnd.osgi.Resource getMetaTypeResource()Returns the MetaType resource. -
getImportService
Returns set of all imported services. Imported services are deduced from every- Returns:
- the list of imported services
-
getExportService
Returns set of all exported services. Imported services are deduced from every annotations which provides a service (@Component, etc ...)- Returns:
- the list of exported services
-