本文整理了Java中org.apache.karaf.features.Feature.isBlacklisted()
方法的一些代码示例,展示了Feature.isBlacklisted()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Feature.isBlacklisted()
方法的具体详情如下:
包路径:org.apache.karaf.features.Feature
类名称:Feature
方法名:isBlacklisted
暂无
代码示例来源:origin: apache/karaf
@Override
public boolean isBlacklisted() {
return feature.isBlacklisted();
}
代码示例来源:origin: apache/karaf
private void assertNotBlacklisted(org.apache.karaf.features.Feature feature) {
if (feature.isBlacklisted()) {
if (builder.getBlacklistPolicy() == Builder.BlacklistPolicy.Fail) {
throw new RuntimeException("Feature " + feature.getId() + " is blacklisted");
}
}
}
代码示例来源:origin: org.apache.karaf.profile/org.apache.karaf.profile.core
private void assertNotBlacklisted(org.apache.karaf.features.Feature feature) {
if (feature.isBlacklisted()) {
if (builder.getBlacklistPolicy() == Builder.BlacklistPolicy.Fail) {
throw new RuntimeException("Feature " + feature.getId() + " is blacklisted");
}
}
}
代码示例来源:origin: apache/karaf
@Override
protected boolean acceptsFeature(Feature feature) {
return !featuresService.isInstalled(feature) && !feature.isHidden() && !feature.isBlacklisted();
}
代码示例来源:origin: org.apache.karaf.features/org.apache.karaf.features.command
@Override
protected boolean acceptsFeature(Feature feature) {
return !featuresService.isInstalled(feature) && !feature.isHidden() && !feature.isBlacklisted();
}
代码示例来源:origin: apache/karaf
private static Feature getLatestFeature(Map<String, Feature> versions, VersionRange versionRange) {
Feature feature = null;
if (versions != null && !versions.isEmpty()) {
Version latest = Version.emptyVersion;
for (String available : versions.keySet()) {
Version availableVersion = VersionTable.getVersion(available);
if (availableVersion.compareTo(latest) >= 0 && versionRange.contains(availableVersion)) {
Feature possiblyBlacklisted = versions.get(available);
// return only if there are no more non-blaclisted features
if (feature == null || !possiblyBlacklisted.isBlacklisted()) {
feature = possiblyBlacklisted;
}
latest = availableVersion;
}
}
}
return feature;
}
代码示例来源:origin: apache/karaf
public FeatureReq(Feature feature) {
this(feature.getName(), exactVersion(feature.getVersion()), feature.isBlacklisted());
}
代码示例来源:origin: apache/karaf
public JmxFeature(Feature feature, boolean installed, boolean required) {
try {
String[] itemNames = FeaturesServiceMBean.FEATURE;
Object[] itemValues = new Object[itemNames.length];
itemValues[0] = feature.getName();
itemValues[1] = feature.getVersion();
itemValues[2] = getDependencyIdentifierTable(feature.getDependencies());
itemValues[3] = getBundleUris(feature.getBundles());
itemValues[4] = getConfigList(feature.getConfigurations());
itemValues[5] = getConfigFileList(feature.getConfigurationFiles());
itemValues[6] = installed;
itemValues[7] = feature.isBlacklisted();
itemValues[8] = required;
data = new CompositeDataSupport(FEATURE, itemNames, itemValues);
} catch (OpenDataException e) {
throw new IllegalStateException("Cannot form feature open data", e);
}
}
代码示例来源:origin: apache/karaf
for (Feature feature : allFeatures.get(name)) {
if (range == null || range.contains(VersionTable.getVersion(feature.getVersion()))) {
if (feature != this.feature && !feature.isBlacklisted()) {
String ssName = this.name + "#" + (feature.hasVersion() ? feature.getName() + "-" + feature.getVersion() : feature.getName());
Subsystem fs = getChild(ssName);
代码示例来源:origin: apache/karaf
if (!showBlacklisted && f.isBlacklisted()) {
f.getDescription());
if (showBlacklisted) {
row.addContent(f.isBlacklisted() ? "yes" : "no");
代码示例来源:origin: org.apache.karaf.features/org.apache.karaf.features.command
if (!showBlacklisted && f.isBlacklisted()) {
f.getDescription());
if (showBlacklisted) {
row.addContent(f.isBlacklisted() ? "yes" : "no");
内容来源于网络,如有侵权,请联系作者删除!