Home > News content

Apache Commons Discovery 0.5 发布

via:开源中国社区     time:2011/5/6 15:12:07     readed:845

Discovery 组件用来发现、查找和实现可插入式接口,提供一些一般类实例化、单件的生命周期管理的常用方法。

示例代码:

import org.apache.commons.discovery.DiscoverClass;

import org.apache.commons.logging.LogFactory;

...

DiscoverClass discoverClass = new DiscoverClass();

Class logFactoryClass = (LogFactory)discoverClass.find(LogFactory.class);

详细改进内容请看发行说明

 

China IT News APP

Download China IT News APP

Please rate this news

The average score will be displayed after you score.

Post comment

Do not see clearly? Click for a new code.

User comments