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

Nick Cross jacorb at goots.org
Fri Jan 31 17:29:33 CET 2014


Interesting. If you want to look at putting together a design/pull 
request to modify the IDL compiler I'd be happy to look at it.

Regards

Nick

On 31/01/14 15:42, 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
>>
>
>



More information about the jacorb-developer mailing list