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

Wrong example code - refering non-existent Weld#shutdown()

XMLWordPrintable

    • Documentation (Ref Guide, User Guide, etc.)

      http://docs.jboss.org/weld/reference/latest/en-US/html_single/#weld-se

      public static void main(String[] args) {
      WeldContainer weld = new Weld().initialize();
      weld.instance().select(MyApplicationBean.class).get();
      weld.shutdown();
      }

      versus

      http://www.jarvana.com/jarvana/view/org/jboss/weld/weld-se/1.0.1-Final/weld-se-1.0.1-Final-javadoc.jar!/org/jboss/weld/environment/se/WeldContainer.html

      From which I conclude that the example's call to shutdown() is wrong.

              ajustin@redhat.com Ales Justin
              ozizka_jira Ondrej Zizka (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: