动态检测Java ME中支持的配置/配置文件/JSR [英] Dynamically detecting supported configuration/profile/JSRs in Java ME
问题描述
如何动态检测正在使用的配置文件/配置以及支持的JSR?我知道您可以动态检测支持的类,但是我如果选择仅应在特定配置文件/配置中使用的随机类是执行此操作的正确方法,将会感到惊讶.
How do I dynamically detect what profile/configuration is being used and what JSRs are supported? I know that you can dynamically detect supported classes, but I would be surprised if picking a random class that should only be in a particular profile/configuration were the proper way of doing this.
推荐答案
使用 System.getProperty 上的"microedition.configuration"和"microedition.profiles"属性.其他JSR也可能具有定义的属性.查看定义的属性名称的列表.
Use System.getProperty on the "microedition.configuration" and "microedition.profiles" properties. Other JSRs may have defined properties as well. Look at the list of defined property names.
这篇关于动态检测Java ME中支持的配置/配置文件/JSR的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!