You are viewing outdated content for BUG. If you have a BUG Y.T. edition or 2.0 series device, please visit our updated wiki: http://wiki.buglabs.net



CTE

From BUG Wiki

Jump to: navigation, search

Contents

Overview

Concierge Tools for Eclipse (CTE) consist of a set of tools that facilitate the creation and execution of OSGi applications on the Concierge OSGi (R3) runtime.

OSGi Overview

OSGi is a java-centric component model and framework specification. Components, known as bundles, can be created, deployed, and managed within an OSGi runtime. For more information please visit http://www.osgi.org.


Concierge OSGi R3 Framework

Concierge is a highly optimized implementation of the OSGi R3 specification targeted towards mobile and embedded devices. For more information please visit http://concierge.sourceforge.net.


CTE Features

Dynamic Classpath Management

OSGi Classpath Container
OSGi Classpath Container

Concierge Tools for Eclipse manages the design-time classpath for your projects automatically. Eclipse PDE does this with the classpath container named "Plug-in Dependencies". CTE does this in a similar way by examining the Exports-Package and Imports-Package declarations of each manifest of each CTE project in your workspace. CTE's classpath management uses two containers, "Concierge OSGi" for core bundles, such as the Concierge framework and OSGi bundle. The "OSGi Bundle Classpath" container holds references to other projects in your workspace that are contributing packages. This classpath management function executes when you modify and save the manifest file of any CTE project in your workspace.

Concierge Project Container

CTE allows for a "Concierge Project" within Eclipse. The Concierge project includes a builder that validates the manifest file and other visual clues for OSGi developers. Common fields can be added from the wizard. Also, a template BundleActivator implementation can be generated from the wizard.

Visualize Bundle Exports

Exported Package Decoration
Exported Package Decoration

Packages exported by a given bundle are visualized in the Java package decorator in the Project Navigator view.

OSGi Manifest Validation

OSGi Manifest Validation
OSGi Manifest Validation

The OSGi manifest file structure is validated using the built-in Eclipse PDE validator. Errors and warning are visible in the Manifest editor.

Export Project as OSGi Bundle

OSGi Bundle Export Wizard
OSGi Bundle Export Wizard

An export wizard makes it easy to make a Concierge project as a OSGi bundle.

Control Framework and other Default Launch Bundles

Concierge Preference Page
Concierge Preference Page

The framework jar and other default OSGi bundles can be installed in the Concierge preference page.

Run and Debug OSGi Bundles

CTE Launch Configuration
CTE Launch Configuration

Just like Java applications, Concierge bundles can be launched and debugged from within Eclipse. The launch dialog gives the user precise control over bundle loading and starting and allows configuration of Concierge system properties.

Framework Notes

Included in the Concierge Tools for Eclipse feature is a plugin that bundles the Concierge OSGi runtime. This code was authored by Jan S. Rellermeyer Information and Communication Systems Research Group (IKS), Institute for Pervasive Computing, ETH Zurich. When launching a CTE project, this framework gets executed. It is possible to use a different framework (assuming the launch style is compatible) or a different version by replacing the cg_framework.jar. At this time the filename is hard-coded, so the file will have to be replaced. Any additional jars can be places in the same plugin/jars directory such that they can be started from the Concierge Bundles section of the launch configuration.

Download

The CTE updatesite url is:

http://bugcommunity.com/cte/updatesite/

Source Code

The CTE source code is available in the Bug Labs SVN repository at:

svn://svn.buglabs.net/cte/trunk