Uploaded image for project: 'Weld'
  1. Weld
  2. WELD-898

Docs: Weld Reference - 2.2.3. Producer methods example error - two types named "Random"

XMLWordPrintable

      2.2.3. Producer methods

      One of {{Random}}s must be fully qualified.

      @ApplicationScoped
      public class RandomNumberGenerator {
         private Random random = new Random(System.currentTimeMillis());
         @Produces @Named @Random int getRandomNumber() {
            return random.nextInt(100);
         }
      }
      

              rhn-engineering-jharting Jozef Hartinger
              ozizka_jira Ondrej Zizka (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: