Commons Discovery

fmms 13年前
     <p>Discovery 组件用来发现、查找和实现可插入式接口,提供一些一般类实例化、单件的生命周期管理的常用方法。</p>    <p>示例代码:</p>    <pre class="brush:java; toolbar: true; auto-links: false;">import org.apache.commons.discovery.DiscoverClass; import org.apache.commons.logging.LogFactory; ... DiscoverClass discoverClass = new DiscoverClass(); Class logFactoryClass = (LogFactory)discoverClass.find(LogFactory.class);</pre>    <p><strong>项目主页:</strong><a href="http://www.open-open.com/lib/view/home/1326888993858" target="_blank">http://www.open-open.com/lib/view/home/1326888993858</a></p>    <p></p>