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

x33g5p2x  于2022-02-03 转载在 其他  
字(7.3k)|赞(0)|评价(0)|浏览(167)

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

Xml介绍

暂无

代码示例

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

@Xml(prefix = NAMESPACE)
private static class DefaultXmlExtension {
}

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

private XmlDslModel getXmlLanguageModel(Xml xml, ExtensionDeclaration extensionDeclaration) {
  final Optional<String> extensionNamespace = xml != null ? ofNullable(xml.prefix()) : empty();
  final Optional<String> extensionNamespaceLocation = xml != null ? ofNullable(xml.namespace()) : empty();
  return createXmlLanguageModel(extensionNamespace, extensionNamespaceLocation, extensionDeclaration.getName(),
                 extensionDeclaration.getVersion());
 }
}

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

@Xml(namespace = NAMESPACE_LOCATION)
private static class CustomSchemaLocationXmlExtension {
}

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

private XmlDslModel getXmlLanguageModel(Xml xml, ExtensionDeclaration extensionDeclaration) {
  final Optional<String> extensionNamespace = xml != null ? ofNullable(xml.prefix()) : empty();
  final Optional<String> extensionNamespaceLocation = xml != null ? ofNullable(xml.namespace()) : empty();
  return createXmlLanguageModel(extensionNamespace, extensionNamespaceLocation, extensionDeclaration.getName(),
                 extensionDeclaration.getVersion());
 }
}

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

@Xml(prefix = NAMESPACE, namespace = NAMESPACE_LOCATION)
private static class XmlSupport {
}

代码示例来源: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: 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 = "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

/**
 * This extension exposes operations to validate resource access from a plugin and service, but also exposes a resource to validate
 * exported ones can in fact be accessed.
 */
@Extension(name = "ResourceExtension")
@Xml(prefix = "rs")
@Operations(ResourceOps.class)
@Export(resources = {"stuff.json"})
public class ResourceExtension {

}

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

@Extension(name = "Test Functions")
@ExpressionFunctions(GlobalWeaveFunction.class)
@Operations(WeaveTestUtilsOperations.class)
@Xml(prefix = "fn")
public class WeaveFunctionExtension {

}

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

@Extension(name = "Values")
@Configurations({SimpleConfig.class, ConfigWithValueParameter.class,
  ConfigWithValueAndRequiredParam.class, ConfigWithValuesWithRequiredParamsFromParamGroup.class,
  ConfigWithValuesWithRequiredParamsFromShowInDslGroup.class, ConfigWithFailureErrorProvider.class})
@Sources({SimpleSource.class})
@Xml(namespace = "http://www.mulesoft.org/schema/mule/values", prefix = "values")
public class ValuesExtension {

}

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

@Extension(name = "Test OAuth Extension")
@ConnectionProviders({TestOAuthConnectionProvider.class, ScopelessOAuthConnectionProvider.class})
@Operations(TestOAuthOperations.class)
@Xml(prefix = "test-oauth")
public class TestOAuthExtension {

 private List<AuthCodeRequest> capturedAuthCodeRequests = new LinkedList<>();
 private List<AuthorizationCodeState> capturedAuthCodeStates = new LinkedList<>();

 public List<AuthCodeRequest> getCapturedAuthCodeRequests() {
  return capturedAuthCodeRequests;
 }

 public List<AuthorizationCodeState> getCapturedAuthCodeStates() {
  return capturedAuthCodeStates;
 }
}

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

@Extension(name = "substitutionGroup")
@Xml(namespace = "http://www.mulesoft.org/schema/mule/sg", prefix = "sg")
@Export(classes = {SomeExportedPojo.class})
public class SubstitutionGroupExtension {

 @Parameter
 private SomePojo somePojo;

 @Parameter
 private MuleSGPojo muleSGPojo;

}

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

@Extension(name = "ClassLoading")
@Xml(prefix = "classloading")
@ConnectionProviders({CLPoolingConnectionProvider.class, CLCachedConnectionProvider.class, CLNoneConnectionProvider.class})
@Configurations(CLConfiguration.class)
@Export(classes = ClassLoadingHelper.class)
public class ClassLoadingExtension {

}

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

/**
 * Test Extension Description
 */
@Extension(name = "multiple")
@Configurations({TestDocumentedConfig.class, TestAnotherDocumentedConfig.class})
@Xml(namespace = "namespaceLocation", prefix = "documentation")
public class TestExtensionWithDocumentationAndMultipleConfig {

}

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

@Extension(name = "transactional")
@ConnectionProviders({PoolingTransactionalConnectionProvider.class, NonPoolingTransactionalConnectionProvider.class})
@Operations(TransactionalOperations.class)
@Sources({TransactionalSource.class, TransactionalSourceWithTXParameters.class})
@Xml(prefix = "tx")
@Export(classes = org.mule.test.transactional.TransactionalOperations.class)
public class TransactionalExtension {

}

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

@Extension(name = "RAM")
@Xml(prefix = "ram")
@SoapMessageDispatcherProviders({MiniverseDispatcherProvider.class,
  DefaultPortalGunDispatcherProvider.class,
  TestHttpMessageDispatcherProvider.class})
public class RickAndMortyExtension implements SoapServiceProvider {

 public static final String RICKS_PHRASE = "WUBBA LUBBA DUB DUB";

 @Parameter
 private String wsdlUrl;

 @Parameter
 private String service;

 @Parameter
 private String port;

 @Override
 public List<WebServiceDefinition> getWebServiceDefinitions() {
  return singletonList(builder().withId("ram").withWsdlUrl(wsdlUrl).withPort(port).withService(service).build());
 }
}

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

@Extension(name = "secure")
@Operations(SecureOperations.class)
@ConnectionProviders(SecureConnectionProvider.class)
@Xml(namespace = "http://www.mulesoft.org/schema/mule/secure", prefix = "secure")
public class SecureConnector {

 @Parameter
 @Text
 private String plainStringField;

 @Parameter
 @Password
 private String password;

}

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

@Extension(name = "implicit")
@Operations({ImplicitOperations.class})
@Xml(namespace = "http://www.mulesoft.org/schema/mule/implicit", prefix = "implicit")
@ConnectionProviders(ImplicitConnectionProvider.class)
public class ImplicitConfigExtension implements Initialisable, Startable, MuleContextAware {

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

subTypes = {AnimalsOutputAttributes.class, ShapeOutputAttributes.class})
@SubTypeMapping(baseType = Rectangle.class, subTypes = {Square.class})
@Xml(namespace = "http://www.mulesoft.org/schema/mule/metadata", prefix = "metadata")
@Export(classes = {TestMetadataResolverUtils.class, NativeQueryOutputResolver.class})
public class MetadataExtension {

相关文章