2 Replies Latest reply on Mar 20, 2009 4:45 AM by alesj

    What's KernelControllerContext.install fromState argument?

    wolfc

      What does the fromState argument on KernelControllerContext.install actually mean?

      Deep down it's ignored.

      I would have expected doing kcc.install(DESCRIBED, INSTALLED) twice would result in an IllegalStateException.

        • 1. Re: What's KernelControllerContext.install fromState argumen

           

          "wolfc" wrote:
          What does the fromState argument on KernelControllerContext.install actually mean?

          Deep down it's ignored.

          I would have expected doing kcc.install(DESCRIBED, INSTALLED) twice would result in an IllegalStateException.


          That method is for use by the Controller its not meant to be invoked directly.

          You are correct that "fromState" is currently ignored (the fromState is just the current state).
          It may not be in future when we move to a non-linear state model?

          • 2. Re: What's KernelControllerContext.install fromState argumen
            alesj

             

            "adrian@jboss.org" wrote:

            It may not be in future when we move to a non-linear state model?

            With the last idea on how to handle non-linear model - keeping a linear sub-path -
            I don't think we need it either. I might prove myself wrong when I actually start to impl that. ;-)

            But the spi doesn't limit you in writing your own state model,
            hence this parameter is completely legit.