Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 369135 - Create a URI structure to be used to obtain resource
Summary: Create a URI structure to be used to obtain resource
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: EDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 369136 369138
  Show dependency tree
 
Reported: 2012-01-19 14:13 EST by Joseph Vincens CLA
Modified: 2017-02-23 14:19 EST (History)
4 users (show)

See Also:


Attachments
Resource URI proposal (23.54 KB, application/vnd.oasis.opendocument.text)
2012-01-24 09:37 EST, Joseph Vincens CLA
no flags Details
Specification for Resource URIs (23.90 KB, application/vnd.oasis.opendocument.text)
2012-01-26 11:09 EST, Joseph Vincens CLA
no flags Details
Specification for Resource URIs (23.97 KB, application/vnd.oasis.opendocument.text)
2012-01-27 17:11 EST, Joseph Vincens CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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