本文整理了Java中org.switchyard.Property.getLabels()
方法的一些代码示例,展示了Property.getLabels()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Property.getLabels()
方法的具体详情如下:
包路径:org.switchyard.Property
类名称:Property
方法名:getLabels
[英]The labels of the property.
[中]属性的标签。
代码示例来源:origin: org.switchyard/switchyard-bus-camel
@Override
public Context setProperties(Set<Property> properties) {
for (Property property : properties) {
Set<String> labels = property.getLabels();
setProperty(property.getName(), property.getValue(), property.getScope())
.addLabels(labels.toArray(new String[labels.size()]));
}
return this;
}
代码示例来源:origin: jboss-switchyard/core
@Override
public Context setProperties(Set<Property> properties) {
for (Property property : properties) {
Set<String> labels = property.getLabels();
setProperty(property.getName(), property.getValue(), property.getScope())
.addLabels(labels.toArray(new String[labels.size()]));
}
return this;
}
代码示例来源:origin: org.switchyard.components/switchyard-component-bean
if (include.matcher(p.getName()).matches()) {
Property newProp = newExchange.getContext().setProperty(p.getName(), p.getValue(), Scope.EXCHANGE);
if (p.getLabels() != null && !p.getLabels().isEmpty()) {
newProp.addLabels(p.getLabels());
代码示例来源:origin: jboss-switchyard/core
/**
* Copy properties from source context to destination context. Properties with
* TRANSIENT label will be skipped.
*
* @param source Source context.
* @param destination Destination context.
* @return Destination context.
*/
public static Context copy(Context source, Context destination) {
for (Property property : source.getProperties()) {
if (!property.hasLabel(BehaviorLabel.TRANSIENT.label())) {
destination.setProperty(property.getName(), property.getValue())
.addLabels(property.getLabels());
}
}
return destination;
}
代码示例来源:origin: org.switchyard/switchyard-runtime
/**
* Copy properties from source context to destination context. Properties with
* TRANSIENT label will be skipped.
*
* @param source Source context.
* @param destination Destination context.
* @return Destination context.
*/
public static Context copy(Context source, Context destination) {
for (Property property : source.getProperties()) {
if (!property.hasLabel(BehaviorLabel.TRANSIENT.label())) {
destination.setProperty(property.getName(), property.getValue())
.addLabels(property.getLabels());
}
}
return destination;
}
代码示例来源:origin: org.switchyard/switchyard-bus-camel
@Override
public void mergeInto(Context context) {
for (Property property : getProperties()) {
if (ContextPropertyUtil.isReservedProperty(property.getName(), property.getScope())
|| property.hasLabel(BehaviorLabel.TRANSIENT.label())) {
continue;
}
context.setProperty(property.getName(), property.getValue(), property.getScope())
.addLabels(property.getLabels());
}
}
代码示例来源:origin: jboss-switchyard/core
@Override
public void mergeInto(Context context) {
for (Property property : getProperties()) {
if (ContextPropertyUtil.isReservedProperty(property.getName(), property.getScope())
|| property.hasLabel(BehaviorLabel.TRANSIENT.label())) {
continue;
}
context.setProperty(property.getName(), property.getValue(), property.getScope())
.addLabels(property.getLabels());
}
}
内容来源于网络,如有侵权,请联系作者删除!