[DRMAA-WG] Introspection Example

Daniel Templeton Dan.Templeton at Sun.COM
Tue Feb 6 12:23:00 CST 2007


All,

Attached is an example of doing job template property access via 
introspection/reflection on the Java platform.  The source code contains 
two different ways to access the property.

On a related note, I would like to suggest that the setAttribute() and 
getAttribute() routines should handle the attribute values as "object" 
if possible or "string" if not possible.  Back to C++, it would be a 
little unnatural to force every attribute to be a string if the 
implementation includes or assumes a library of common objects.  Just a 
thought.

Daniel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Introspection.java
Type: text/x-java
Size: 4335 bytes
Desc: not available
Url : http://www.ogf.org/pipermail/drmaa-wg/attachments/20070206/cfb536b5/attachment.java 


More information about the drmaa-wg mailing list