Uploaded image for project: 'MyFaces CODI'
  1. MyFaces CODI
  2. EXTCDI-162

re-visit implementation of custom project stages.

    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.9.4
    • 0.9.5
    • Core
    • None

    Description

      if users forget @Typed(), they would see an AmbiguousResolutionException.
      cdi-qualifiers aren't supported (in case of project-stages). so @Typed() is required all the time.

      currently valid example:
      public class CustomProjectStage implements ProjectStageHolder
      {
      @Typed()
      public static final class Debugging extends ProjectStage

      { private static final long serialVersionUID = -8626602281649294170L; }

      public static final Debugging Debugging = new Debugging();
      }

      since there is no support for cdi-qualifiers, we could veto those classes. that would allow to skip the @Typed() but the rest would be the same (because codi will still find them).

      pro: users don't have to use @Typed() explicitly (and they won't see the AmbiguousResolutionException, if they forget using @Typed())
      con: it isn't std. cdi - but adding @Typed() even though it isn't needed wouldn't harm.

      Attachments

        Activity

          People

            gpetracek Gerhard Petracek
            gpetracek Gerhard Petracek
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: