是否有一个术语描述应用程序范围的配置属性?
我有一个应用程序,它有一组集合,其中包含外部可配置的值。
例如:
货币、时区、国家、州。
通常,这些值在下拉框中显示给用户,并从外部服务加载,并按上述类别分组。
有没有一个名词可以有效地描述这个“配置值集合的集合”?
例如:
interface xxxxRepository
{
List<String> getXXXXX(String category);
}
清楚地描述这个概念的有效名称是什么?
I have an application which has a set of collections, which contain externally configurable values.
Eg:
Currencies, TimeZones, Countries, States.
Typically, these values are displayed to a user in drop-down boxes, and are loaded from an external service, grouped by the above categories.
Is there a noun that effectively describes this 'collection of configuration value collections'?
eg:
interface xxxxRepository
{
List<String> getXXXXX(String category);
}
What are the effective names that clearly describe this concept?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
“系统属性”听起来足够通用吗?或者“MetaDataService”听起来不言自明/符合逻辑?
Would "System Properties" sound generic enough ? or "MetaDataService" sound self explanatory / logical ?
“系统属性”对于应用程序范围的配置值来说非常常见,但我会更多地将其用于简单的 foo="bar" 键/值对,例如数据库连接字符串。
看起来你的例子(货币、国家、州)超出了我所认为的基本“配置”。从某种意义上说,您正在以数据驱动的方式定义可能的枚举值。也许 EnumerationRepository 或 EnumerationValueRepository 合适?
"System properties" is pretty common for application-wide configuration values but I would use that more for simple foo="bar" key/value pairs, like a database connection string for example.
It kind of seems like your example (currencies, countries, states) goes beyond what I would consider basic "configuration." In a sense, you are defining possible enumeration values in a data-driven manner. Maybe EnumerationRepository or EnumerationValueRepository would be appropriate?
基本上,您需要的是一个元数据存储库和一种通过将元素分类为分类和分类项来对元素进行分组的方法
AppSemanticsRepostiory{
getClassification();
}
Basically what you need is a metadatarepository and a way to group elements by classifying them as clasifications and classification items
AppSemanticsRepostiory{
getClassification();
}
在 Ada 中,它大致类似于通用包的
package elaboration
...虽然这不是一个直观的答案,但如果您允许“package”引用您的软件,它确实传达了您想要的含义[-包裹]。In Ada it would be roughly analogous to
package elaboration
for generic packages... while it's not an intuitive answer, it does convey the meaning you want if you allow "package" to refer to your software[-package].