wash1983 opened a new issue, #7054:
URL: https://github.com/apache/rocketmq/issues/7054
### Is Your Feature Request Related to a Problem?
看acl验证部分能支持多个,但是load的时候只能加载一个。我想的是自定义一个验证器,打成一个jar包,能够被broker 加载进去。
### Describe the Solution You'd Like
大概是修改这个位置:org.apache.rocketmq.broker.util.ServiceProvider.load(String,
Class<?>)
public static <T> List<T> load(String name, Class<?> clazz) {
LOG.info("Looking for a resource file of name [{}] ...", name);
List<T> services = new ArrayList<T>();
try {
ArrayList<String> names = new ArrayList<String>();
final InputStream is =
getResourceAsStream(getContextClassLoader(), name);
修改为类似这样:
Enumeration<URL> urls =
classLoader.getResources(FACTORIES_RESOURCE_LOCATION);
while (urls.hasMoreElements()) {
URL url = urls.nextElement();
UrlResource resource = new UrlResource(url);
Properties properties =
PropertiesLoaderUtils.loadProperties(resource);
### Describe Alternatives You've Considered
a
### Additional Context
_No response_
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]