T - the generic type of the instances to be builtpublic abstract class AbstractExtensionObjectFactory<T> extends AbstractAnnotatedObjectFactory<T>
ObjectFactory implementation which create extension components.
Contains behavior to obtain and manage components parameters.
| Modifier and Type | Field and Description |
|---|---|
protected MuleContext |
muleContext |
| Constructor and Description |
|---|
AbstractExtensionObjectFactory(MuleContext muleContext) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkParameterGroupExclusiveness(org.mule.runtime.api.meta.model.parameter.ParameterizedModel model,
Set<String> resolverKeys) |
protected Map<String,Object> |
getParameters() |
protected ResolverSet |
getParametersAsResolverSet(org.mule.runtime.api.meta.model.parameter.ParameterizedModel model,
Predicate<org.mule.runtime.api.meta.model.parameter.ParameterModel>... predicates)
Constructs a
ResolverSet from the output of getParameters(), using toValueResolver(Object) to
process the values. |
void |
setParameters(Map<String,Object> parameters) |
protected ValueResolver<?> |
toValueResolver(Object value)
Wraps the
value into a ValueResolver of the proper type. |
getAnnotation, getAnnotations, getObject, setAnnotationsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdoGetObjectprotected final MuleContext muleContext
public AbstractExtensionObjectFactory(MuleContext muleContext)
protected Map<String,Object> getParameters()
Map which key is the parameter name and the value is the actual thingyprotected ResolverSet getParametersAsResolverSet(org.mule.runtime.api.meta.model.parameter.ParameterizedModel model, Predicate<org.mule.runtime.api.meta.model.parameter.ParameterModel>... predicates) throws ConfigurationException
ResolverSet from the output of getParameters(), using toValueResolver(Object) to
process the values.ResolverSet{@link - ConfigurationException} if the exclusiveness condition between parameters is not honoredConfigurationExceptionprotected ValueResolver<?> toValueResolver(Object value)
value into a ValueResolver of the proper type. For example, Collection and Map
instances are exposed as CollectionValueResolver and MapValueResolver respectively.
If value is already a ValueResolver then it's returned as is.
Other values (including null) are wrapped in a StaticValueResolver.
value - the value to exposeValueResolverprotected void checkParameterGroupExclusiveness(org.mule.runtime.api.meta.model.parameter.ParameterizedModel model,
Set<String> resolverKeys)
throws ConfigurationException
ConfigurationExceptionCopyright © 2003–2016 MuleSoft, Inc.. All rights reserved.