io.gravitee.plugin.core.api.Plugin.type()方法的使用及代码示例

x33g5p2x  于2022-01-26 转载在 其他  
字(4.4k)|赞(0)|评价(0)|浏览(156)

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

Plugin.type介绍

暂无

代码示例

代码示例来源:origin: gravitee-io/gravitee-gateway

@Override
public boolean canHandle(Plugin plugin) {
  return plugin.type() == PluginType.REPOSITORY;
}

代码示例来源:origin: gravitee-io/gravitee-gateway

public Set<Plugin> plugins() {
  return pluginRegistry.plugins().stream().map(regPlugin -> {
    Plugin plugin = new Plugin();
    plugin.setId(regPlugin.id());
    plugin.setName(regPlugin.manifest().name());
    plugin.setDescription(regPlugin.manifest().description());
    plugin.setVersion(regPlugin.manifest().version());
    plugin.setType(regPlugin.type().name().toLowerCase());
    plugin.setPlugin(regPlugin.clazz());
    return plugin;
  }).collect(Collectors.toSet());
}

代码示例来源:origin: gravitee-io/gravitee-management-rest-api

@Override
public boolean canHandle(Plugin plugin) {
  return plugin.type() == PluginType.IDENTITY_PROVIDER;
}

代码示例来源:origin: gravitee-io/graviteeio-access-management

@Override
public boolean canHandle(Plugin plugin) {
  return plugin.type() == PluginType.EXTENSION_GRANT;
}

代码示例来源:origin: io.gravitee.plugin/gravitee-plugin-policy

@Override
public boolean canHandle(Plugin plugin) {
  return plugin.type() == PluginType.POLICY;
}

代码示例来源:origin: io.gravitee.plugin/gravitee-plugin-resource

@Override
public boolean canHandle(Plugin plugin) {
  return PluginType.RESOURCE == plugin.type();
}

代码示例来源:origin: io.gravitee.management/gravitee-management-api-repository

@Override
public boolean canHandle(Plugin plugin) {
  return plugin.type() == PluginType.REPOSITORY;
}

代码示例来源:origin: io.gravitee.am.gateway.services/gravitee-am-gateway-services-core

@Override
public boolean canHandle(Plugin plugin) {
  return plugin.type() == PluginType.SERVICE;
}

代码示例来源:origin: io.gravitee.am.plugins.handlers/gravitee-am-plugins-handlers-identityprovider

@Override
public boolean canHandle(Plugin plugin) {
  return plugin.type() == PluginType.IDENTITY_PROVIDER;
}

代码示例来源:origin: io.gravitee.node/gravitee-node-notifier

@Override
public boolean canHandle(Plugin plugin) {
  return PluginType.NOTIFIER == plugin.type();
}

代码示例来源:origin: io.gravitee.plugin/gravitee-plugin-fetcher

@Override
public boolean canHandle(Plugin plugin) {
  return PluginType.FETCHER == plugin.type();
}

代码示例来源:origin: gravitee-io/graviteeio-access-management

@Override
public boolean canHandle(Plugin plugin) {
  return plugin.type() == PluginType.CERTIFICATE;
}

代码示例来源:origin: io.gravitee.am.plugins.handlers/gravitee-am-plugins-handlers-extensiongrant

@Override
public boolean canHandle(Plugin plugin) {
  return plugin.type() == PluginType.EXTENSION_GRANT;
}

代码示例来源:origin: io.gravitee.am.gateway/gravitee-am-gateway-services-core

@Override
public boolean canHandle(Plugin plugin) {
  return plugin.type() == PluginType.SERVICE;
}

代码示例来源:origin: io.gravitee.gateway.services/gravitee-gateway-services-core

@Override
public boolean canHandle(Plugin plugin) {
  return plugin.type() == PluginType.SERVICE;
}

代码示例来源:origin: io.gravitee.am.management/gravitee-am-management-api-repository

@Override
public boolean canHandle(Plugin plugin) {
  return plugin.type() == PluginType.REPOSITORY;
}

代码示例来源:origin: io.gravitee.plugin/gravitee-plugin-service-discovery

@Override
public boolean canHandle(Plugin plugin) {
  return PluginType.SERVICE_DISCOVERY == plugin.type();
}

代码示例来源:origin: io.gravitee.node/gravitee-node-reporter

@Override
public boolean canHandle(Plugin plugin) {
  return plugin.type() == PluginType.REPORTER;
}

代码示例来源:origin: io.gravitee.gateway.services/gravitee-gateway-services-heartbeat

public Set<Plugin> plugins() {
  return pluginRegistry.plugins().stream().map(regPlugin -> {
    Plugin plugin = new Plugin();
    plugin.setId(regPlugin.id());
    plugin.setName(regPlugin.manifest().name());
    plugin.setDescription(regPlugin.manifest().description());
    plugin.setVersion(regPlugin.manifest().version());
    plugin.setType(regPlugin.type().name().toLowerCase());
    plugin.setPlugin(regPlugin.clazz());
    return plugin;
  }).collect(Collectors.toSet());
}

代码示例来源:origin: io.gravitee.gateway.services/gravitee-gateway-services-monitoring

public Set<Plugin> plugins() {
  return pluginRegistry.plugins().stream().map(regPlugin -> {
    Plugin plugin = new Plugin();
    plugin.setId(regPlugin.id());
    plugin.setName(regPlugin.manifest().name());
    plugin.setDescription(regPlugin.manifest().description());
    plugin.setVersion(regPlugin.manifest().version());
    plugin.setType(regPlugin.type().name().toLowerCase());
    plugin.setPlugin(regPlugin.clazz());
    return plugin;
  }).collect(Collectors.toSet());
}

相关文章