org.apache.openjpa.lib.conf.Value.getScope()方法的使用及代码示例

x33g5p2x  于2022-02-01 转载在 其他  
字(4.1k)|赞(0)|评价(0)|浏览(79)

本文整理了Java中org.apache.openjpa.lib.conf.Value.getScope()方法的一些代码示例,展示了Value.getScope()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Value.getScope()方法的具体详情如下:
包路径:org.apache.openjpa.lib.conf.Value
类名称:Value
方法名:getScope

Value.getScope介绍

[英]A class defining the scope in which this value is defined. This will be used by the configuration framework to look up metadata about the value.
[中]定义定义此值的范围的类。配置框架将使用它来查找有关该值的元数据。

代码示例

代码示例来源:origin: org.apache.openejb.patch/openjpa

pd.setDisplayName(findLocalized(prop + "-name", true, val.getScope()));
pd.setShortDescription(findLocalized(prop + "-desc", true,
  val.getScope()));
pd.setExpert("true".equals(findLocalized(prop + "-expert", false,
  val.getScope())));
String type = findLocalized(prop + "-type", true, val.getScope());
if (type != null)
  pd.setValue(ATTRIBUTE_TYPE, type);
String cat = findLocalized(prop + "-cat", false, val.getScope());
if (cat != null)
  pd.setValue(ATTRIBUTE_CATEGORY, cat);
  val.getScope());
if (order != null)
  pd.setValue(ATTRIBUTE_ORDER, order);
  + "-values", false, val.getScope()), ",", 0);
for (int i = 0; i < vals.length; i++)
  if (!aliases.contains(vals[i]))
try {
  Class<?> intf = Class.forName(findLocalized(prop
    + "-interface", true, val.getScope()), false,
    getClass().getClassLoader());
  pd.setValue(ATTRIBUTE_INTERFACE, intf.getName());

代码示例来源:origin: org.apache.openjpa/com.springsource.org.apache.openjpa

pd.setDisplayName(findLocalized(prop + "-name", true, val.getScope()));
pd.setShortDescription(findLocalized(prop + "-desc", true,
  val.getScope()));
pd.setExpert("true".equals(findLocalized(prop + "-expert", false,
  val.getScope())));
String type = findLocalized(prop + "-type", true, val.getScope());
if (type != null)
  pd.setValue(ATTRIBUTE_TYPE, type);
String cat = findLocalized(prop + "-cat", false, val.getScope());
if (cat != null)
  pd.setValue(ATTRIBUTE_CATEGORY, cat);
  val.getScope());
if (order != null)
  pd.setValue(ATTRIBUTE_ORDER, order);
  + "-values", false, val.getScope()), ",", 0);
for (int i = 0; i < vals.length; i++)
  if (!aliases.contains(vals[i]))
try {
  Class intf = Class.forName(findLocalized(prop
    + "-interface", true, val.getScope()), false,
    getClass().getClassLoader());
  pd.setValue(ATTRIBUTE_INTERFACE, intf.getName());

代码示例来源:origin: org.apache.openjpa/openjpa-lib

pd.setDisplayName(findLocalized(prop + "-name", true, val.getScope()));
pd.setShortDescription(findLocalized(prop + "-desc", true,
  val.getScope()));
pd.setExpert("true".equals(findLocalized(prop + "-expert", false,
  val.getScope())));
String type = findLocalized(prop + "-type", true, val.getScope());
if (type != null)
  pd.setValue(ATTRIBUTE_TYPE, type);
String cat = findLocalized(prop + "-cat", false, val.getScope());
if (cat != null)
  pd.setValue(ATTRIBUTE_CATEGORY, cat);
  val.getScope());
if (order != null)
  pd.setValue(ATTRIBUTE_ORDER, order);
  + "-values", false, val.getScope()), ",", 0);
for (int i = 0; i < vals.length; i++)
  if (!aliases.contains(vals[i]))
try {
  Class<?> intf = Class.forName(findLocalized(prop
    + "-interface", true, val.getScope()), false,
    getClass().getClassLoader());
  pd.setValue(ATTRIBUTE_INTERFACE, intf.getName());

代码示例来源:origin: org.apache.openjpa/openjpa-all

pd.setDisplayName(findLocalized(prop + "-name", true, val.getScope()));
pd.setShortDescription(findLocalized(prop + "-desc", true,
  val.getScope()));
pd.setExpert("true".equals(findLocalized(prop + "-expert", false,
  val.getScope())));
String type = findLocalized(prop + "-type", true, val.getScope());
if (type != null)
  pd.setValue(ATTRIBUTE_TYPE, type);
String cat = findLocalized(prop + "-cat", false, val.getScope());
if (cat != null)
  pd.setValue(ATTRIBUTE_CATEGORY, cat);
  val.getScope());
if (order != null)
  pd.setValue(ATTRIBUTE_ORDER, order);
  + "-values", false, val.getScope()), ",", 0);
for (int i = 0; i < vals.length; i++)
  if (!aliases.contains(vals[i]))
try {
  Class<?> intf = Class.forName(findLocalized(prop
    + "-interface", true, val.getScope()), false,
    getClass().getClassLoader());
  pd.setValue(ATTRIBUTE_INTERFACE, intf.getName());

相关文章