feat: expose plugin and viewNode outsize registry
This commit is contained in:
parent
19a8aaae94
commit
34b759bb82
@ -248,4 +248,12 @@ public class DoricRegistry {
|
||||
public DoricResourceManager getResourceManager() {
|
||||
return doricResourceManager;
|
||||
}
|
||||
|
||||
public Set<String> allPlugins() {
|
||||
return pluginInfoMap.keySet();
|
||||
}
|
||||
|
||||
public Set<String> allViewNodes() {
|
||||
return nodeInfoMap.keySet();
|
||||
}
|
||||
}
|
||||
|
@ -56,6 +56,9 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
+ (void)register:(DoricLibrary *)library;
|
||||
|
||||
-(NSArray <NSString *>*)allPlugins;
|
||||
|
||||
-(NSArray <NSString *>*)allViewNodes;
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
||||
|
@ -198,4 +198,12 @@ - (void)onLog:(DoricLogType)type message:(NSString *)message {
|
||||
[monitor onLog:type message:message];
|
||||
}
|
||||
}
|
||||
|
||||
- (NSArray <NSString *> *)allPlugins {
|
||||
return self.plugins.allKeys;
|
||||
}
|
||||
|
||||
- (NSArray <NSString *> *)allViewNodes {
|
||||
return self.nodes.allKeys;
|
||||
}
|
||||
@end
|
||||
|
Reference in New Issue
Block a user