Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Choose from one of multiple IJvmModelInferrer implementations at runtime
Choose from one of multiple IJvmModelInferrer implementations at runtime [message #922031] Mon, 24 September 2012 13:11
Alex C is currently offline Alex C
Messages: 13
Registered: July 2009
Junior Member
Hi there,

In my xtext project I would like to have multiple IJvmModelInferrer implementations and programmatically choose which one is to be used at runtime, perhaps initially by a hard-wired configuration, and then perhaps from the gui at some future point.

But the key point is that only one inferrer gets used, and the choice is configurable.

I see that by default, there is a generated 'Abstract[xxx]RuntimeModule' class which defines a 'bindIJvmModelInferrer' method, this seems to be called at runtime for Guice binding.

I would appreciate any guidance or suggestions on how to go about this

Thanks

Alex.
Previous Topic:problem for define dsl
Next Topic:xtext grammer default data types
Goto Forum:
  


Current Time: Sat Jul 26 01:17:44 EDT 2014

Powered by FUDForum. Page generated in 0.28569 seconds