本文整理了Java中org.kevoree.Value.getName()
方法的一些代码示例,展示了Value.getName()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Value.getName()
方法的具体详情如下:
包路径:org.kevoree.Value
类名称:Value
方法名:getName
暂无
代码示例来源:origin: kevoree/kevoree
private Map<String, String> getRepositories(DeployUnit deployUnit) {
Map<String, String> repositories = new HashMap<>();
// hacky way to treat Maven repositories as I don't want to change the Kevoree MM
for (Value val : deployUnit.getFilters()) {
if (val.getName().startsWith("repo_")) {
repositories.put(val.getName().substring(5), val.getValue());
}
}
return repositories;
}
代码示例来源:origin: org.kevoree/org.kevoree.bootstrap
@NotNull
@Override
public void injectDictionaryValue(Value dictionaryValue, Object target) {
internalInjectField(dictionaryValue.getName(), dictionaryValue.getValue(), target);
}
代码示例来源:origin: org.kevoree/org.kevoree.bootstrap
private ConfigurableMavenResolverSystem getResolver(DeployUnit deployUnit) {
String offlineProp = System.getProperty("offline", "false");
boolean offline = Boolean.valueOf(offlineProp);
ConfigurableMavenResolverSystem resolver = Maven
.configureResolver()
.useLegacyLocalRepo(true)
.workOffline(offline);
try {
LogManager.getLogManager().readConfiguration(new FileInputStream(propFile));
} catch (IOException e) {
throw new RuntimeException("Unable to read " + propFile.getAbsolutePath());
}
// hacky way to treat Maven repositories as I don't want to change the Kevoree MM
for (Value val : deployUnit.getFilters()) {
if (val.getName().startsWith("repo_")) {
try {
resolver.withRemoteRepo(val.getName().substring(5), new URL(val.getValue()), "default");
} catch (MalformedURLException e) {
throw new RuntimeException("Invalid repository URL: " + val.getValue());
}
}
}
return resolver;
}
代码示例来源:origin: org.kevoree.library.java/org.kevoree.library.java.javaNode
private void debug(Value value) {
Instance instance = (Instance) value.eContainer().eContainer();
DictionaryAttribute attr = instance.getTypeDefinition().getDictionaryType().findAttributesByID(value.getName());
if (attr.getFragmentDependant()) {
Log.debug("Update param for {}.{}/{} = '{}'", instance.getName(), value.getName(),
((NamedElement) value.eContainer()).getName(), value.getValue());
} else {
Log.debug("Update param for {}.{} = '{}'", instance.getName(), value.getName(), value.getValue());
}
}
代码示例来源:origin: org.kevoree.library.java/org.kevoree.library.java.javaNode
} else {
Instance instance = (Instance) dicValue.eContainer().eContainer();
DictionaryAttribute dicAtt = instance.getTypeDefinition().getDictionaryType().findAttributesByID(dicValue.getName());
if (dicAtt.getDefaultValue() != null && !dicAtt.getDefaultValue().equals("")) {
valueToInject = dicAtt.getDefaultValue();
Value fakeDicoValue = new DefaultKevoreeFactory().createValue();
fakeDicoValue.setValue(valueToInject);
fakeDicoValue.setName(dicValue.getName());
Object reffoundO = registry.lookup(c);
if (reffoundO != null) {
代码示例来源:origin: org.kevoree.library.java/org.kevoree.library.java.javaNode
if (previousInstance != null) {
DictionaryType dt = instance.getTypeDefinition().getDictionaryType();
DictionaryAttribute dicAtt = dt.findAttributesByID(dicValue.getName());
if (dicAtt != null && dicAtt.getDefaultValue() != null
&& dicAtt.getDefaultValue().equals(dicValue.getValue())) {
代码示例来源:origin: kevoree/kevoree
param.setValue(attr.getDefaultValue());
node.getDictionary().addValues(param);
Log.debug("Set default node param: {} = '{}'", param.getName(), param.getValue());
内容来源于网络,如有侵权,请联系作者删除!