public class MuleExtensionUtils extends Object
extensionspublic static void validateRepeatedNames(Collection<? extends org.mule.extension.introspection.Described>... describedCollections)
Described items in describedCollection have an
equivalent value for Described.getName()describedCollections - an array of Collections with instances of DescribedIllegalArgumentException - if the validation failspublic static <T extends org.mule.extension.introspection.Described> Map<String,T> toMap(List<T> objects)
public static <T> boolean hasAnyDynamic(Iterable<ValueResolver<T>> resolvers)
T - the generic type of the ValueResolver itemsresolvers - a Iterable with instances of ValueResolvertrue if at least one ValueResolver is dynamic, false otherwisepublic static <T extends org.mule.extension.introspection.Described> List<T> alphaSortDescribedList(List<T> list)
list in ascending alphabetic order, using Described.getName()
as the sorting criteriapublic static <T> org.mule.extension.runtime.ConfigurationInstanceProvider<T> createConfigurationInstanceProvider(String name, org.mule.extension.introspection.Extension extension, org.mule.extension.introspection.Configuration configuration, ResolverSet resolverSet, MuleContext muleContext, org.mule.extension.runtime.ConfigurationInstanceRegistrationCallback registrationCallback) throws Exception
Exceptionpublic static OperationContextAdapter asOperationContextAdapter(org.mule.extension.runtime.OperationContext operationContext)
public static String getDefaultValue(org.mule.extension.annotations.param.Optional optional)
public static MuleEvent getInitialiserEvent(MuleContext muleContext)
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.