public class MuleExtensionUtils extends Object
extensions
Modifier and Type | Method and Description |
---|---|
static <T extends org.mule.extension.introspection.Described> |
alphaSortDescribedList(List<T> list)
Sorts the given
list in ascending alphabetic order, using Described.getName()
as the sorting criteria |
static OperationContextAdapter |
asOperationContextAdapter(org.mule.extension.runtime.OperationContext operationContext) |
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) |
static String |
getDefaultValue(org.mule.extension.annotations.param.Optional optional) |
static MuleEvent |
getInitialiserEvent(MuleContext muleContext) |
static <T> boolean |
hasAnyDynamic(Iterable<ValueResolver<T>> resolvers)
|
static <T extends org.mule.extension.introspection.Described> |
toMap(List<T> objects)
|
static void |
validateRepeatedNames(Collection<? extends org.mule.extension.introspection.Described>... describedCollections)
Verifies that none of the
Described items in describedCollection have an
equivalent value for Described.getName() |
public 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 Collection
s with instances of Described
IllegalArgumentException
- 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 ValueResolver
true
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 criteriaT
- the generic type of the items in the list
list
- a List
with instances of Described
list
public 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
Exception
public 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.