Plugin Configuration Fields

답변됨 Plugin Configuration Fields

  • 2012년 4월 23일 월요일 오후 9:27
     
     

    Hi,

    When you register a plugin you can also specify the secure/unsecure configuration fields associated to each step. The configuration fields are passed to the plugin by its constructor and the plugin is instantiated only once and reused afterward. If a plugin has several steps and each step has their own configuration, does this mean that only the configuration of the first step executed will be passed to the plugin as parameters?

    Thanks,
    Marc

모든 응답

  • 2012년 4월 24일 화요일 오후 1:00
     
     답변됨
    The steps are cached individually, so the configuration values of the step are passed in for that step.
    • 답변으로 표시됨 DynamicMarc 2012년 4월 24일 화요일 오후 2:42
    •  
  • 2012년 4월 24일 화요일 오후 1:53
     
     
    You're saying that each step has their own Plugin instance even if it is the same class?
    • 편집됨 DynamicMarc 2012년 4월 24일 화요일 오후 1:53
    •  
  • 2012년 4월 24일 화요일 오후 2:40
     
     
    Yes, the class will act on the config data as passed in by the step, so you could base branching logic on this if you wish.