[windup-dev] Problem with WindupConfigModel

Ondrej Zizka ozizka at redhat.com
Sat Sep 6 09:01:12 EDT 2014


Problem with WindupConfigModel is that *currently* it needs context 
initialized, since it is initialized like this:

     WindupConfigurationModel config = 
GraphService.getConfigurationModel(context);

And at the same time this config "DTO" needs to be passed into the 
top-level API (currently WindupProcessor).

I can see 2 solutions:

    A) Continue using WCM, implement    WINDUP-147 GraphService.merge() 
to store classes implementing the model interface
            so that supports adjacent models (needed for the scan packages)

    B) Have WindupConfig, and copy stuff to WCM (which is the same as A, 
only done manually)

    C) What I am currently doing, an ugly hack - passing final variables 
into GraphLifecycleListener

Ondra



More information about the windup-dev mailing list