MyFaces CODI
  1. MyFaces CODI
  2. EXTCDI-18

Provide ProjectStage determination mechanisms also for non-JSF environments like unit tests

    Details

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

      Description

      We need a centralised but extendible mechanism to properly detect ProjectStages and provide both, programmatic detection and @Produces for it.

      The programmatic detection is necessary for writing plugins which need to know the actual ProjectStage at a point in time where the CDI startup process has not yet finished.

        Issue Links

          Activity

          Hide
          Mark Struberg added a comment -

          I've now committed a basic backend version.

          I'll later work on:

          • a JSF-1.2 version which additionally checks the web.xml to mimic JSF-2 behaviour
          • a JSF-2 version which first asks the Application.getProjectStage() and converts those javax.faces ProjectStages into our CODI ProjectStages if something other than ProjectStage.Production has been found.
          Show
          Mark Struberg added a comment - I've now committed a basic backend version. I'll later work on: a JSF-1.2 version which additionally checks the web.xml to mimic JSF-2 behaviour a JSF-2 version which first asks the Application.getProjectStage() and converts those javax.faces ProjectStages into our CODI ProjectStages if something other than ProjectStage.Production has been found.

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Development