Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 369135

Summary: Create a URI structure to be used to obtain resource
Product: z_Archived Reporter: Joseph Vincens <jvincens>
Component: EDTAssignee: Project Inbox <edt.language-inbox>
Status: CLOSED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: jspadea, margolis, svihovec, tww
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:
Bug Depends on:    
Bug Blocks: 369136, 369138    
Attachments:
Description Flags
Resource URI proposal
none
Specification for Resource URIs
none
Specification for Resource URIs none

Description Joseph Vincens CLA 2012-01-19 14:13:15 EST
The URI will be used in SysLib.getResource and @Resource.
The existing single segment name must continue to work.
The URI could include a context, name, and type.
Currently the only type is binding. The context for binding is the properties file that would contain the binding.
Comment 1 Joseph Vincens CLA 2012-01-24 09:37:45 EST
Created attachment 209968 [details]
Resource URI proposal

The attached document is the proposed format for resource URI's.
Comment 2 Joseph Vincens CLA 2012-01-26 11:09:21 EST
Created attachment 210125 [details]
Specification for Resource URIs

The URI format will be 
URI = resource:sub-scheme ":" hier-part [ "?" query ] [ "#" fragment ]

The resource scheme is optional, sub-scheme's are required.

The current @Resource and getResource used to get bindings will change from using a simple name to a URI. The URI definition is:
-binding:<resource binding name> this assumes the default egldd file as the source of the resource binding information.  
-binding:file:/<property file name>#<resource binding name> specifies the property file name as the source of the resource binding information.

This affects all @Resource annotations and all SysLib.getResource function invocations. See the attached for details.
Comment 3 Joseph Vincens CLA 2012-01-26 11:10:14 EST
specification updated for 0.8.0 content.
Comment 4 Joseph Vincens CLA 2012-01-27 17:11:50 EST
Created attachment 210226 [details]
Specification for Resource URIs

show file uri's as relative paths not absolute
Comment 5 Joseph Vincens CLA 2012-03-08 12:52:30 EST
completed