commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ravi Luthra (JIRA)" <j...@apache.org>
Subject [jira] Created: (DISCOVERY-9) Documentation of other use cases
Date Thu, 21 Dec 2006 21:39:21 GMT
Documentation of other use cases
--------------------------------

                 Key: DISCOVERY-9
                 URL: http://issues.apache.org/jira/browse/DISCOVERY-9
             Project: Commons Discovery
          Issue Type: Wish
    Affects Versions: 0.4
         Environment: all
            Reporter: Ravi Luthra
            Priority: Minor


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.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message