COSMOS DC OSGi Bundles
Organizing code in CVS
COSMOS DC code is structured in OSGi bundles. This document is to document how the code is structured in i5, and what changes are required in i6. This is to help contributors of the project find out where should new code reside, naming convention of package names, etc.
To start with, here are some requirements:
- Separation of framework and extension code: code that is intended for used as an example should reside in a different bundle as the framework code
- The framework bundles should roughly map to the components of the DC architecture (e.g. management domain, broker, MDR, etc)
Existing bundles in the COSMOS DC project
Here are the bundles in the build as of i5:
Framework core bundles:
- org.eclipse.cosmos.dc.common: framework API and implementations
- org.eclipse.cosmos.dc.local.domain: management domain
- org.eclipse.cosmos.dc.local.registry: SDMX registry
Bundles that contains extension code:
- org.eclipse.cosmos.dc.sample.components: sample component for the data collection assembly framework
- org.eclipse.cosmos.dc.sample.configurations: holds the assembly XML files of the sample components
- org.eclipse.cosmos.tptp.dependencies: TPTP dependency used by the GLA log parser example.
- org.eclipse.cosmos.dc.tptp.gla.components: the GLA data source component example
- org.eclipse.cosmos.dc.spec: Some WSDM capabilities defined by some query components
- org.eclipse.cosmos.dc.birt.helper: some helper methods for using the DC framework. The code should really belong to the client.
3rd party dependency
Bundles for i6 (Proposal)
Note: the bundle directory names should match the bundle ID. There are a few bundles in the current codebase where the bundle directory name does not match the bundle ID, which need to be corrected.
- org.eclipse.cosmos.dc.broker (new)
- org.eclipse.cosmos.dc.local.registry (to be replaced by org.eclipse.cosmos.dc.broker)
- org.eclipse.cosmos.dc.common (There are packages in this bundle that need to be refactored into another bundle, e.g. the registry API and implementations.)
- org.eclipse.cosmos.dc.local.domain => org.eclipse.cosmos.dc.mgmt.domain
- org.eclipse.cosmos.dc.mgmt.common => to be moved to the management enablement project
- org.eclipse.cosmos.dc.mgmt.wsdm => to be moved to the management enablement project
- org.eclipse.cosmos.dc.spec => The capabilities will go in the bundles of the corresponding components. For example, the DataBrokerCapability.jara will go in the org.eclipse.cosmos.dc.broker bundle.
- org.eclipse.cosmos.dc.birt.helper => (I think this is client code and should not be part of the dc project.)