In several places of the Xtend templates the 'new' operator is used to
instantiate template classes and other helpers.
This is not the recommended way, it is better to inject these objects. This
way, these classes can use Extensions, otherwise the classes are not managed
with Guice.
Example:
`XsprayGenerator.xtend`:
{{{
var Plugin plugin = new Plugin()
}}}
Change to
{{{
class XprayGenerator ... {
@Inject Plugin plugin
}
}}}
Original issue reported on code.google.com by karsten....@googlemail.com on 8 Sep 2011 at 9:08
Original issue reported on code.google.com by
karsten....@googlemail.com
on 8 Sep 2011 at 9:08