org.mule.runtime.extension.api.annotation.Extension类的使用及代码示例

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

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

Extension介绍

暂无

代码示例

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

@Extension(name = "Not Deprecated")
public static class NonDeprecatedExtension {
}

代码示例来源: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: mulesoft/mule

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

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

@Override
public String getVendor() {
 return extensionAnnotation.get().vendor();
}

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

@Override
public Category getCategory() {
 return extensionAnnotation.get().category();
}

代码示例来源: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: org.mule.runtime/mule-module-extensions-support

@Override
public String getVendor() {
 return extensionAnnotation.get().vendor();
}

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

@Override
public Category getCategory() {
 return extensionAnnotation.get().category();
}

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

@Configurations({ParameterResolverConfig.class, NestedWrapperTypesConfig.class})
@Extension(name = "ParameterResolver")
public class ParameterResolverExtension {

}

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

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

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

@Extension(name = "multiImplicitConfig")
@Xml(namespace = "http://www.mulesoft.org/schema/mule/multiimplicitconfig", prefix = "multiimplicitconfig")
@Configurations(value = {BlaConfig.class, BleConfig.class, NonImplicitConfig.class, AnotherConfigThatCanBeUsedImplicitly.class})
public class MultipleImplicitConfigExtension {
}

代码示例来源: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)));
}

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

/**
 * This is the main class of an extension, is the entry point from which configurations, connection providers, operations
 * and sources are going to be declared.
 */
@Extension(name = "reconnection")
@Operations(ReconnectionOperations.class)
@Configurations(ReconnectionConfiguration.class)
public class ReconnectionExtension {

}

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

@Extension(name = MARVEL_EXTENSION)
@Configurations({IronMan.class, DrStrange.class})
@ErrorTypes(DrStrangeErrorTypeDefinition.class)
@Export(classes = {IronMan.class, DrStrangeTypeWithCustomStereotype.class})
public class MarvelExtension {

 public static final String MARVEL_EXTENSION = "Marvel";
}

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

@Extension(name = "implicitExclusive")
@Xml(namespace = "http://www.mulesoft.org/schema/mule/implicitexclusive", prefix = "implicitexclusive")
@Configurations(value = {BlaConfig.class, BleConfig.class, NonImplicitConfig.class})
@Export(classes = ConfigWithNumber.class)
public class ImplicitExclusiveConfigExtension {
}

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

@Extension(name = OTHER_HEISENBERG)
public static class HeisenbergWithRecursiveParameterGroup extends HeisenbergExtension {
 @ParameterGroup(name = "recursive")
 private RecursiveParameterGroup group;
}

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

@Extension(name = "InvalidExtensionWithNestedCollection")
public static class InvalidExtensionWithoutOptionals {
 @ParameterGroup(name = "exclusion")
 private ExclusionWithNestedCollection group;
}

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

@Extension(name = "InvalidExtensionWithoOneOptionalParameters")
public static class InvalidExtensionWithoOneOptionalParameters {
 @ParameterGroup(name = "exclusion")
 private ExclusionWithoutOneOptionalParameters group;
}

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

@Extension(name = "MyOS")
@Operations(MyOSOperations.class)
@ConnectionProviders(MyOSConnectionProvider.class)
@Xml(prefix = "custom-os")
public class MyOSConnector {

 public static Map<String, TypedValue<String>> VALUES = new HashMap<>();
}

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

@Extension(name = OTHER_HEISENBERG)
@Operations({HeisenbergExtension.class, GenericlessMessageOperation.class})
public static class HeisenbergWithGenericlessMessageOperation {
}

相关文章