Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

扩展点配置文件的目录可以配置 #30

Open
oldratlee opened this issue Feb 9, 2013 · 1 comment
Open

扩展点配置文件的目录可以配置 #30

oldratlee opened this issue Feb 9, 2013 · 1 comment

Comments

@oldratlee
Copy link
Member

目前的实现是写死的:

private static final String SERVICES_DIRECTORY = "META-INF/extensions/";

可以使用-D选项来配置:

-Dcooma.extension.dir="META-INF/cooma/extensions/"

或是getExtensionLoader时设置,这样可以在一个进程中选择不同的目录。
比如dubbo库在 MF/dubbo ,napoli在 MF/napoli

也会需要配置 多个加载目录的需要,这样方便兼容老的Extension实现,不用修改Extension配置文件目录。

@ghost ghost assigned oldratlee Feb 9, 2013
@oldratlee
Copy link
Member Author

这个需求是有的,在多框架一起使用的情况下,比如 RPC框架(Dubbo) 和 消息框架(Napoli) 都使用的Cooma来加载,这时希望使用不同的路径来加载扩展,来意图更明显些。比如:

# Dubbo把扩展文件放的目录
META-INF/dubbo/cooma

# Napoli把扩展文件放的目录
META-INF/napoli/cooma

一般框架使用不配置也足够使用。把这个功能移到Milestone Future 中。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant