Uploaded image for project: 'CDI TCK'
  1. CDI TCK
  2. CDITCK-211

Test that beans which are @Named via a stereotype are selectable with Instance.select()

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • Minor
    • None
    • None
    • None
    • None

    Description

      For example, say we have the following bean:

      public @Model class Foo implements IFoo { }

      And we have the following injection point within another bean:

      @Inject Instance<Foo> fooInstance;

      Check that it is possible to select it

      // This must not result in an UnsatisfiedDependencyException
      Foo foo = fooInstance.select(new NamedLiteral("foo")).get();

      Attachments

        Activity

          People

            mkouba@redhat.com Martin Kouba
            sbryzak@redhat.com Shane Bryzak
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              PagerDuty