Class ComponentDeclarationUtils
java.lang.Object
org.mule.runtime.extension.privileged.util.ComponentDeclarationUtils
Provides a way to access the functionality on internal model properties when declaring components on crafted extensions.
Being privileged, this is not intended to be used outside of the scope of crafted extension declarations.
- Since:
- 1.8
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidasPagedOperation(org.mule.runtime.api.meta.model.declaration.fluent.ComponentDeclarer declarer) Marks that the component being declared by thedeclareris paged.static booleanisConnectionProvisioningRequired(org.mule.runtime.api.meta.model.ConnectableComponentModel componentModel) static booleanisConnectivityErrorSupported(org.mule.runtime.api.meta.model.declaration.fluent.ExecutableComponentDeclaration<?> declaration) static booleanisNoErrorMapping(org.mule.runtime.api.meta.model.operation.OperationModel componentModel) static booleanisNoTransactionalAction(org.mule.runtime.api.meta.model.ComponentModel componentModel) static booleanisPagedOperation(org.mule.runtime.api.meta.model.ComponentModel componentModel) static booleanisReconnectionStrategySupported(org.mule.runtime.api.meta.model.ConnectableComponentModel componentModel) static booleanisReconnectionStrategySupported(org.mule.runtime.api.meta.model.declaration.fluent.ExecutableComponentDeclaration<?> declaration) static booleanisReconnectionStrategySupported(org.mule.runtime.api.meta.model.declaration.fluent.ExtensionDeclaration declaration) static booleanisTargetParameter(Set<org.mule.runtime.api.meta.model.ModelProperty> paramModelProperties) static booleanisTargetParameter(org.mule.runtime.api.meta.model.parameter.ParameterModel paramModel) static booleanisTransactionalAction(org.mule.runtime.api.meta.model.parameter.ParameterModel paramModel) static booleanisTransactionalType(org.mule.runtime.api.meta.model.parameter.ParameterModel paramModel) static voidwithNoConnectivityError(org.mule.runtime.api.meta.model.declaration.fluent.OperationDeclarer declarer) Marks that the operation being declared by thedeclarerwill avoid propagating connectivity errors from operations, regardless of being connected.static voidwithNoErrorMapping(org.mule.runtime.api.meta.model.declaration.fluent.OperationDeclarer declarer) Marks that the operation being declared by thedeclarermay not contain errorMappings.static voidwithNoReconnectionStrategy(org.mule.runtime.api.meta.model.declaration.fluent.ExtensionDeclarer declarer) Marks that the operations of the extension being declared by thedeclarermay not have aExtensionConstants.RECONNECTION_CONFIG_PARAMETER_NAMEparameter, regardless of them being connected.static voidwithNoReconnectionStrategy(org.mule.runtime.api.meta.model.declaration.fluent.OperationDeclarer declarer) Marks that the operation being declared by thedeclarermay not have aExtensionConstants.RECONNECTION_CONFIG_PARAMETER_NAMEparameter, regardless of being connected.static voidwithNoStreamingConfiguration(org.mule.runtime.api.meta.model.declaration.fluent.OperationDeclarer declarer) Marks that the operation being declared by thedeclarermay not have a configuring streaming strategy, regardless of it being a streaming operation.static voidwithNoTransactionalAction(org.mule.runtime.api.meta.model.declaration.fluent.OperationDeclarer declarer) Marks that the operation being declared by thedeclarermay not have a configuring transactionalAction, regardless of being transactional.
-
Method Details
-
withNoStreamingConfiguration
public static void withNoStreamingConfiguration(org.mule.runtime.api.meta.model.declaration.fluent.OperationDeclarer declarer) Marks that the operation being declared by thedeclarermay not have a configuring streaming strategy, regardless of it being a streaming operation.- Parameters:
declarer- the declarer of the operation to mark.
-
withNoTransactionalAction
public static void withNoTransactionalAction(org.mule.runtime.api.meta.model.declaration.fluent.OperationDeclarer declarer) Marks that the operation being declared by thedeclarermay not have a configuring transactionalAction, regardless of being transactional.- Parameters:
declarer- the declarer of the operation to mark.
-
withNoReconnectionStrategy
public static void withNoReconnectionStrategy(org.mule.runtime.api.meta.model.declaration.fluent.OperationDeclarer declarer) Marks that the operation being declared by thedeclarermay not have aExtensionConstants.RECONNECTION_CONFIG_PARAMETER_NAMEparameter, regardless of being connected.- Parameters:
declarer- the declarer of the operation to mark.
-
withNoReconnectionStrategy
public static void withNoReconnectionStrategy(org.mule.runtime.api.meta.model.declaration.fluent.ExtensionDeclarer declarer) Marks that the operations of the extension being declared by thedeclarermay not have aExtensionConstants.RECONNECTION_CONFIG_PARAMETER_NAMEparameter, regardless of them being connected.- Parameters:
declarer- the declarer of the extension to mark.
-
withNoConnectivityError
public static void withNoConnectivityError(org.mule.runtime.api.meta.model.declaration.fluent.OperationDeclarer declarer) Marks that the operation being declared by thedeclarerwill avoid propagating connectivity errors from operations, regardless of being connected.- Parameters:
declarer- the declarer of the operation to mark.
-
withNoErrorMapping
public static void withNoErrorMapping(org.mule.runtime.api.meta.model.declaration.fluent.OperationDeclarer declarer) Marks that the operation being declared by thedeclarermay not contain errorMappings.- Parameters:
declarer- the declarer of the operation to mark.
-
asPagedOperation
public static void asPagedOperation(org.mule.runtime.api.meta.model.declaration.fluent.ComponentDeclarer declarer) Marks that the component being declared by thedeclareris paged.- Parameters:
declarer- the declarer of the component to mark.
-
isNoTransactionalAction
public static boolean isNoTransactionalAction(org.mule.runtime.api.meta.model.ComponentModel componentModel) - Parameters:
componentModel- the component to check for.- Returns:
- whether
componentModelmay not have a configuring transactionalAction.
-
isNoErrorMapping
public static boolean isNoErrorMapping(org.mule.runtime.api.meta.model.operation.OperationModel componentModel) - Parameters:
componentModel- the operation to check for.- Returns:
- whether
componentModelmay not contain errorMappings.
-
isPagedOperation
public static boolean isPagedOperation(org.mule.runtime.api.meta.model.ComponentModel componentModel) - Parameters:
componentModel- the component to check for.- Returns:
- whether
componentModelis paged.
-
isTransactionalAction
public static boolean isTransactionalAction(org.mule.runtime.api.meta.model.parameter.ParameterModel paramModel) - Parameters:
paramModel- the parameter to check for.- Returns:
- whether
paramModelis the parameter considered to inject the value of the Transactional Action.
-
isTransactionalType
public static boolean isTransactionalType(org.mule.runtime.api.meta.model.parameter.ParameterModel paramModel) - Parameters:
paramModel- the parameter to check for.- Returns:
- whether
paramModelis the parameter is aTransactionType.
-
isTargetParameter
public static boolean isTargetParameter(Set<org.mule.runtime.api.meta.model.ModelProperty> paramModelProperties) - Parameters:
paramModelProperties- the parameter to check for.- Returns:
- whether the paramModel owning the provided
paramModelPropertiesis the parameter considered as a Target type.
-
isTargetParameter
public static boolean isTargetParameter(org.mule.runtime.api.meta.model.parameter.ParameterModel paramModel) - Parameters:
paramModel- the parameter to check for.- Returns:
- whether
paramModelis the parameter considered as a Target type.
-
isConnectionProvisioningRequired
public static boolean isConnectionProvisioningRequired(org.mule.runtime.api.meta.model.ConnectableComponentModel componentModel) - Parameters:
componentModel- aConnectableComponentModel- Returns:
- Whether a component modeled by the given
componentModelwould need a connection to be provided in order to function.
-
isReconnectionStrategySupported
public static boolean isReconnectionStrategySupported(org.mule.runtime.api.meta.model.ConnectableComponentModel componentModel) - Parameters:
componentModel- anConnectableComponentModel- Returns:
- Whether the component modeled by the given
componentModelsupports having a reconnection strategy.
-
isReconnectionStrategySupported
public static boolean isReconnectionStrategySupported(org.mule.runtime.api.meta.model.declaration.fluent.ExtensionDeclaration declaration) - Parameters:
declaration- anExtensionDeclaration.- Returns:
- Whether the components belonging to the extension declared by the given
declarationsupport having a reconnection strategy.
-
isReconnectionStrategySupported
public static boolean isReconnectionStrategySupported(org.mule.runtime.api.meta.model.declaration.fluent.ExecutableComponentDeclaration<?> declaration) - Parameters:
declaration- anExecutableComponentDeclaration.- Returns:
- Whether the component declared by the given
declarationsupports having a reconnection strategy.
-
isConnectivityErrorSupported
public static boolean isConnectivityErrorSupported(org.mule.runtime.api.meta.model.declaration.fluent.ExecutableComponentDeclaration<?> declaration) - Parameters:
declaration- anExecutableComponentDeclaration.- Returns:
- Whether the
componentModelsupports propagating connectivity errors from operations.
-