本文整理了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
暂无
代码示例来源: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)));
}
内容来源于网络,如有侵权,请联系作者删除!