Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » xtend2 dynamic classloading?
xtend2 dynamic classloading? [message #940493] Thu, 11 October 2012 17:34 Go to next message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
I have started to research/try how to rewrite my xpand templates to xtend2 for the EMFT Texo project. A user of Texo can
provide their own templates to override or extend existing templates.

At runtime I check the development project to see if there are templates in the development project itself in specific
locations and use these instead/in addition to the Texo templates.

With xtend2 the templates are all in java. What could be a first thing to look at to see how I can support dynamic
template extension?


With Regards, Martin Taal

Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Cell: +31 (0)6 288 48 943
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@xxxxxxxx - mtaal@xxxxxxxx
Web: -
Re: xtend2 dynamic classloading? [message #941394 is a reply to message #940493] Fri, 12 October 2012 13:32 Go to previous message
Karsten Thoms is currently offline Karsten ThomsFriend
Messages: 762
Registered: July 2009
Location: Dortmund, Germany
Senior Member

Hi Martin,

with Xtend you would likely use Guice anyway. The default generator would provide a runtime module. Since Xtend templates are Java classes you usually don't need to configure them explicitly and would usually inject instances of the known template classes in the generator. If now customizations are required the user would provide a customized Guice module which would bind the template class to exchange by the custom implementation.

Best wishes,

Need professional support for Xtext, EMF, Eclipse IDE?
Go to:
Twitter : @kthoms
Blog :
Previous Topic:[Acceleo] Ordered unbound choices / EFeatureMapEntry
Next Topic:Problem installing Xpand
Goto Forum:

Current Time: Sat Aug 13 04:20:24 GMT 2022

Powered by FUDForum. Page generated in 0.02321 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top