commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Simone Tripodi (JIRA)" <j...@apache.org>
Subject [jira] [Created] (DISCOVERY-14) Move to Java5 generics
Date Tue, 05 Apr 2011 10:04:05 GMT
Move to Java5 generics
----------------------

                 Key: DISCOVERY-14
                 URL: https://issues.apache.org/jira/browse/DISCOVERY-14
             Project: Commons Discovery
          Issue Type: Improvement
    Affects Versions: 0.5
            Reporter: Simone Tripodi
            Assignee: Simone Tripodi
             Fix For: 0.5


Discovery code should be moved to Java5 Generics to simplify clients usage, i.e. 

{code}
LogFactory logFactory = DiscoverSingleton.find(LogFactory.class);
{code}

or
DiscoverClass discoverClass = new DiscoverClass();
Class&lt;? extends LogFactory&gt; logFactoryClass = discoverClass.find(LogFactory.class);
{code}


--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message