本文整理了Java中org.apache.karaf.features.Feature.getConditional()
方法的一些代码示例,展示了Feature.getConditional()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Feature.getConditional()
方法的具体详情如下:
包路径:org.apache.karaf.features.Feature
类名称:Feature
方法名:getConditional
暂无
代码示例来源:origin: apache/karaf
@Override
public List<? extends Conditional> getConditional() {
return this.feature.getConditional();
}
代码示例来源:origin: org.opendaylight.controller/config-persister-feature-adapter
/**
* @return
* @see org.apache.karaf.features.Feature#getConditional()
*/
@Override
public List<? extends Conditional> getConditional() {
return feature.getConditional();
}
代码示例来源:origin: apache/karaf
private void displayConditionalInfo(Feature feature) {
List<? extends Conditional> conditionals = feature.getConditional();
if (conditionals.isEmpty()) {
System.out.println("Feature has no conditionals.");
} else {
System.out.println("Feature contains followed conditionals:");
for (Conditional featureConditional : conditionals) {
String conditionDescription = getConditionDescription(featureConditional);
Feature wrappedConditional = featureConditional.asFeature();
if (config) {
displayConfigInformation(wrappedConditional, String.format(CONDITIONAL_CONTENT, conditionDescription));
displayConfigFileInformation(wrappedConditional, String.format(CONDITIONAL_CONTENT, conditionDescription));
}
if (dependency) {
displayDependencyInformation(wrappedConditional, String.format(CONDITIONAL_CONTENT, conditionDescription));
}
if (bundle) {
displayBundleInformation(wrappedConditional, String.format(CONDITIONAL_CONTENT, conditionDescription));
}
}
}
}
代码示例来源:origin: org.apache.karaf.features/org.apache.karaf.features.command
private void displayConditionalInfo(Feature feature) {
List<? extends Conditional> conditionals = feature.getConditional();
if (conditionals.isEmpty()) {
System.out.println("Feature has no conditionals.");
} else {
System.out.println("Feature contains followed conditionals:");
for (Conditional featureConditional : conditionals) {
String conditionDescription = getConditionDescription(featureConditional);
Feature wrappedConditional = featureConditional.asFeature();
if (config) {
displayConfigInformation(wrappedConditional, String.format(CONDITIONAL_CONTENT, conditionDescription));
displayConfigFileInformation(wrappedConditional, String.format(CONDITIONAL_CONTENT, conditionDescription));
}
if (dependency) {
displayDependencyInformation(wrappedConditional, String.format(CONDITIONAL_CONTENT, conditionDescription));
}
if (bundle) {
displayBundleInformation(wrappedConditional, String.format(CONDITIONAL_CONTENT, conditionDescription));
}
}
}
}
代码示例来源:origin: apache/karaf
private void copyFeatureToJar(JarOutputStream jos, Feature feature, Map<URI, Integer> locationMap)
throws URISyntaxException {
// add bundles
for (BundleInfo bundleInfo : feature.getBundles()) {
URI location = new URI(bundleInfo.getLocation().trim());
copyResourceToJar(jos, location, locationMap);
}
// add config files
for (ConfigFileInfo configFileInfo : feature.getConfigurationFiles()) {
URI location = new URI(configFileInfo.getLocation().trim());
copyResourceToJar(jos, location, locationMap);
}
// add bundles and config files in conditionals
for (Conditional conditional : feature.getConditional()) {
for (BundleInfo bundleInfo : conditional.getBundles()) {
URI location = new URI(bundleInfo.getLocation().trim());
copyResourceToJar(jos, location, locationMap);
}
for (ConfigFileInfo configFileInfo : conditional.getConfigurationFiles()) {
URI location = new URI(configFileInfo.getLocation().trim());
copyResourceToJar(jos, location, locationMap);
}
}
}
代码示例来源:origin: org.apache.karaf.features/org.apache.karaf.features.command
for (Conditional cond : resolved.getConditional()) {
List<String> condition = cond.getCondition();
List<BundleInfo> conditionalBundles = cond.getBundles();
for (Conditional cond : resolved.getConditional()) {
List<Dependency> conditionDependencies = cond.getDependencies();
for (int i = 0, j = conditionDependencies.size(); i < j; i++) {
代码示例来源:origin: apache/karaf
for (Conditional cond : resolved.getConditional()) {
List<String> condition = cond.getCondition();
List<BundleInfo> conditionalBundles = cond.getBundles();
for (Conditional cond : resolved.getConditional()) {
List<Dependency> conditionDependencies = cond.getDependencies();
for (int i = 0, j = conditionDependencies.size(); i < j; i++) {
代码示例来源:origin: jboss-fuse/fabric8
for (Conditional cond : f.getConditional()) {
for (BundleInfo bundleInfo : cond.getBundles()) {
if (/*!bundleInfo.isDependency() && */locationsOfBundleKeys.containsKey(bundleInfo.getLocation())) {
代码示例来源:origin: apache/karaf
callback.installLibraries(feature);
for (Conditional cond : feature.getConditional()) {
Feature condFeature = cond.asFeature();
if (featureIds.contains(condFeature.getId())) {
代码示例来源:origin: apache/karaf
for (Conditional cond : feature.getConditional()) {
if (cond.isBlacklisted()) {
continue;
代码示例来源:origin: apache/karaf
final Downloader downloader = manager.createDownloader();
if (feature != null) {
for (Conditional cond : feature.getConditional()) {
if (!cond.isBlacklisted()) {
for (final BundleInfo bi : cond.getBundles()) {
for (Conditional cond : feature.getConditional()) {
if (cond.isBlacklisted()) {
continue;
内容来源于网络,如有侵权,请联系作者删除!