[jacorb-developer] Are there IDL constructs Similar to Java Annotations?

Rob Ratcliff rrr6399 at futuretek.com
Fri Jan 31 16:49:20 CET 2014


Here is a link to the initial post regarding adding annotations to IDL:
https://groups.google.com/forum/#!topic/comp.object.corba/qhJ_Mq18Ge0

On 1/31/2014 9:42 AM, Rob Ratcliff wrote:
> Kujtim (et al),
>
> I thought you might be interested in this thread I started a few years
> ago regarding improving the flexibility of the IDL to language mapping
> using annotations similar to JAXB and ICE:
> https://groups.google.com/d/topic/comp.object.corba/viO06npeT9c/discussion
>
> Based on this discussion it looked like the only mechanism to do this in
> IDL was #pragma. Embedding an annotation into a comment could work as
> well without having to change the IDL specification similar to XDoclet
> (http://xdoclet.sourceforge.net/xdoclet/using.html ).
>
> I think providing a way for developer to create custom mappings from IDL
> to their Java or C++ code would make CORBA more attractive to
> developers. JAXB is a great example of doing this for Java and
> XML-schema-based messaging implementations. (I prototyped a conversion
> tool that created IDL from JPA annotated Java code, transformed the
> original Java classes into the CORBA classes and vice-a-versa using
> Reflection: https://kenai.com/projects/transmogrify  . Ideally an
> approach like this could be moved into the JacORB code generator to
> remove the need to transform the classes, but an approach like this
> could be a way to experiment with mappings in the short term.)
>
> Anybody associated with the OMG heard of any movement to do add custom
> mappings to the specification?
>
> Thanks,
>
> Rob
>
>
>
> On 1/31/2014 7:12 AM, Kujtim Hyseni wrote:
>> Hi,
>>  
>> although this question is maybe for Object Management Group (OMG) I am re-posting here anyway. My question is: are there constructs in IDL elements specification like annotations in Java to give an element (operation, attribute, ...) some metadata to process with external tools or JacORB generated modified Java code?
>>  
>> Regards,
>> Kujtim
>>  		 	   		  
>> _______________________________________________
>> jacorb-developer maillist  -  jacorb-developer at lists.spline.inf.fu-berlin.de
>> https://lists.spline.inf.fu-berlin.de/mailman/listinfo/jacorb-developer
>>
>


-- 
Rob Ratcliff
FutureTek Software Consulting
We get it done.
cell: 512-633-5751
fax: 512-233-2873
web: http://www.futuretek.com


More information about the jacorb-developer mailing list