org.mule.runtime.extension.api.annotation.Extension.name()方法的使用及代码示例

x33g5p2x  于2022-01-19 转载在 其他  
字(2.0k)|赞(0)|评价(0)|浏览(174)

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

Extension.name介绍

暂无

代码示例

代码示例来源:origin: mulesoft/mule

@Override
 public String getName() {
  return extensionAnnotation.get().name();
 }
}

代码示例来源:origin: mulesoft/mule

private void findExtensionsInClasspath() {
 final Collection<URL> mulePluginsUrls = forClassLoader(classLoader).stream()
   .filter(url -> url.getPath().contains(MULE_PLUGIN_CLASSIFIER))
   .collect(toList());
 Set<Class<?>> annotated = getExtensionTypes(mulePluginsUrls);
 annotated.forEach(type -> getAnnotation(type, Extension.class)
   .ifPresent(extension -> extensionsByName.put(extension.name(), type)));
}

代码示例来源:origin: mulesoft/mule

private ExtensionDeclarer getExtensionDeclarer(ExtensionLoadingContext context) {
 Extension extension = MuleExtensionAnnotationParser.getExtension(extensionType);
 return context.getExtensionDeclarer()
   .named(extension.name())
   .onVersion(version)
   .fromVendor(extension.vendor())
   .withCategory(extension.category())
   .withModelProperty(new SoapExtensionModelProperty())
   .withModelProperty(new ExtensionTypeDescriptorModelProperty(new TypeWrapper(extensionType, typeLoader)))
   .withModelProperty(new ImplementingTypeModelProperty(extensionType));
}

代码示例来源:origin: org.mule.runtime/mule-module-extensions-support

@Override
 public String getName() {
  return extensionAnnotation.get().name();
 }
}

代码示例来源:origin: org.mule.runtime/mule-module-extensions-spring-support

private void findExtensionsInClasspath() {
 final Collection<URL> mulePluginsUrls = forClassLoader(classLoader).stream()
   .filter(url -> url.getPath().contains(MULE_PLUGIN_CLASSIFIER))
   .collect(toList());
 Set<Class<?>> annotated = getExtensionTypes(mulePluginsUrls);
 annotated.forEach(type -> getAnnotation(type, Extension.class)
   .ifPresent(extension -> extensionsByName.put(extension.name(), type)));
}

相关文章