Class OsgiAnalyzer

All Implemented Interfaces:
Generator, Renamable, ResourceProvider

public class OsgiAnalyzer extends AbstractGenerator

A provider that computes OSGi attributes. It does not provide any resources. Rather it analyzes the resources of the project and computes OSGi attributes for the bundle to be eventually built by LibraryBuilder.

The analyzer first requests the resources of type ClassTree supplied to the project. The classes obtained are assumed to be the content of the bundle. It then requests the resources of type LibraryJarFile from the project's dependencies with intent Consume and Expose. These are considered the external dependencies of the bundle.

The data is analyzed and provides the requested attributes.