Details

    • Type: Wish Wish
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 0.4
    • Fix Version/s: 0.5
    • Labels:
      None
    • Environment:

      all

      Description

      This is a request for more code samples. In particular I am having trouble finding code samples that let you find multiple implementations of a class, and instantiating them. What I am trying to do is populate a JTabbedPane with a bunch of Components that are found at runtime based on the jars in the classpath. The jars will have a META-INF/service folder with a file using the interface name (with package name). Right now I am easily able to load one class implementing this interface, but cannot seem to find the correct documentation for loading multiple class implementations of the interface. It seems this is one area that is missing.

      Another thing that would be cool is a general way to search a given package (in all jars) for classes that implement or extend a specific interface/class. This would remove the annoyance of creating service folder and other things. If that isn't in the scope of commons-discovery then never mind. I still think it would be bad-ass.

        Activity

        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Resolved Resolved
        1568d 19h 29m 1 Simone Tripodi 08/Apr/11 18:07
        Resolved Resolved Closed Closed
        54d 3h 36m 1 Simone Tripodi 01/Jun/11 21:43
        Simone Tripodi made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Hide
        Simone Tripodi added a comment -

        included in discovery-0.5 release

        Show
        Simone Tripodi added a comment - included in discovery-0.5 release
        Simone Tripodi made changes -
        Field Original Value New Value
        Status Open [ 1 ] Resolved [ 5 ]
        Assignee Simone Tripodi [ simone.tripodi ]
        Fix Version/s 0.5 [ 12312208 ]
        Resolution Fixed [ 1 ]
        Hide
        Simone Tripodi added a comment -

        Fixed on /trunk, see src/site/xdoc/best-practices.xml r1090352

        Show
        Simone Tripodi added a comment - Fixed on /trunk, see src/site/xdoc/best-practices.xml r1090352
        Ravi Luthra created issue -

          People

          • Assignee:
            Simone Tripodi
            Reporter:
            Ravi Luthra
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development