MyFaces CODI
  1. MyFaces CODI
  2. EXTCDI-174

Introduce @PropertyActivated or @ConfigActivated

    Details

    • Type: New Feature New Feature
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.0.0
    • Component/s: Core
    • Labels:
      None

      Description

      While at JAX, I got pretty often asked if there is a way to configure <alternatives> automatically via configuration. I pointed them to @ProjectStageActivated and this solved 60% of the problems.
      But there are pretty often more complex scenarios where users like to switch between e.g. database vendors based on an external configuration.

      This could e.g. be a normal java properties file and something like

      @PropertyActivated("user.databyse", "mysql")
      

      where the first parameter is the name and the 2nd is the value which must be set.

      Please add further ideas for ways to change those configurations.

      The actual implementation should be trivial as we have most of the work done already in ProjectStageActivationExtension.

        Activity

          People

          • Assignee:
            Gerhard Petracek
            Reporter:
            Mark Struberg
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development