OPS4J
  Pax URL - classpath
Added by Alin Dreghiciu, last edited by Alin Dreghiciu on Jan 15, 2008  (view change)

Labels

 
Overview

Pax URL Classpath is an OSGi URL handler provides access to resources from thread classpath or all installed bundles or a specific bundle. The searched bundle are only those that are nnot protected by permissions.
The resource is searched by:

  1. first look if the bundle symbolic name was specified. If that's the case and the bundle was found then the resource is searched in that bundle. If the resource is found it is returned otherwise an IOException is thrown. If the bundle is not found then an IOException is thrown.
  2. look in the current thread classpath. If found the resource is returned
  3. if not found in thread classpath search all the bundles available and return the first resource found
  4. if still not found an IOException is thrown

Syntax ( see examples )

classpath-uri := "claspath:" [ "//" bundle-symbolic-name "/" ] path-to-resource
bundle-symbolic-name := <any> ; a valid bundle symbolic name from where the resource to be loaded
path-to-resource := <any> ; path to the resources to be loaded

Examples

Loads my-bundle.conf file by searching all the bundles installed.

classpath:my-bundle.conf

Loads my-bundle.conf from the bundle with symbolic name my-bundle

classpath:my-bundle/my-bundle.conf

Issue tracker

Issues, bugs, and feature requests can be submitted to the issue tracking system.

Usage

System requirements

  • any OSGI R4 compilant framework

Manual installation

Pax Runner installation

pax-run mvn:org.ops4j.pax.url/pax-url-classpath

Source code

https://scm.ops4j.org/repos/ops4j/projects/pax/url/pax-url-classpath ( or browse via FishEye )
This project builds with Apache Maven and uses Apache Felix's maven-bundle-plugin, and Peter Kriens bnd tool.

Latest News

Pax URL 0.3.1 has been released.

Checkout release notes for details.

Posted at Jun 02, 2008 by Alin Dreghiciu | 0 comments

Pax URL 0.3.0 has been released.
This release highlights are:

Checkout release notes for details.

Posted at Feb 23, 2008 by Alin Dreghiciu | 0 comments

Pax URL 0.2.1 has been released.
This is a maintenance addressing performance issues on maven artifact discovery.

Checkout release notes for details.

Posted at Feb 08, 2008 by Alin Dreghiciu | 0 comments

Pax URL 0.2.0 has been released.
This release highlights are:

  • new protocol handler for OBR
  • improved maven artifact resolution
  • support for maven version ranges

Checkout release notes for details.

Posted at Feb 05, 2008 by Alin Dreghiciu | 0 comments