[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [edt-dev] Bugzilla enhancement 369135

The URI pattern for a binding that exists in a different file seems a bit odd (e.g. "binding:file:ProdDD#myDB"). Any consideration to using a separator (e.g. "/") to separate the file and binding names? For example: "binding:ProdDD/myDB" ? This would mean binding names could not contain a "/" (or whatever the separator character is). This pattern seems more conventional and rememberable.


Inactive hide details for Joseph Vincens---01/27/2012 05:13:31 PM---If you are using 0.8.0 I2 please read.  The enhancement (buJoseph Vincens---01/27/2012 05:13:31 PM---If you are using 0.8.0 I2 please read.  The enhancement (bugzilla 369135) was just committed and wil

From: Joseph Vincens/New Haven/IBM@IBMUS
To: edt-dev@xxxxxxxxxxx
Date: 01/27/2012 05:13 PM
Subject: [edt-dev] Bugzilla enhancement 369135
Sent by: edt-dev-bounces@xxxxxxxxxxx




If you are using 0.8.0 I2 please read.
The enhancement (bugzilla
369135) was just committed and will affect anyone who is using @Resource or SysLib.getResource.
The enhancement redefines resources, in 0.7.0 resources were only considered bindings, but in the future a resource can represent just about anything.
This required an API change to @Resource and SysLib.getResource, instead of a key these now take a URI. The details are covered in
369135, but you will need to make some code changes. Here are examples of what you need to change:
     
@Resource{bindingKey = âmyDBâ} to @Resource{uri=âbinding:myDBâ}. 
       @Resource{bindingKey=âmyDBâ, propertyFileName=âProdDDâ} to @Resource{uri=âbinding:
file:ProdDD#myDBâ} 
       SysLib.getResource(âmyDBâ) SysLib.getResource(âbinding:myDBâ).
 
       SysLib.getResource(âmyDBâ, âProdDDâ} to SysLib.getResource(âbinding:
file:ProdDD#myDBâ).

regards,
 
Joe Vincens
EGL Developer
Rational Software, IBM Software Group
 _______________________________________________
edt-dev mailing list
edt-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/edt-dev

GIF image