T - the generic type of the instances to be producedpublic abstract class ResolverSetBasedObjectBuilder<T> extends Object implements ObjectBuilder<T>
ObjectBuilder which generates object based on an EnrichableModel for with parameter
groups have been defined based on a ParameterGroupModelProperty| Modifier and Type | Field and Description |
|---|---|
protected ResolverSet |
resolverSet |
| Constructor and Description |
|---|
ResolverSetBasedObjectBuilder(Class<?> prototypeClass,
org.mule.runtime.api.meta.model.parameter.ParameterizedModel model,
ResolverSet resolverSet) |
ResolverSetBasedObjectBuilder(Class<?> prototypeClass,
ResolverSet resolverSet) |
| Modifier and Type | Method and Description |
|---|---|
T |
build(Event event)
Returns a new instance of the specified class.
|
T |
build(ResolverSetResult result) |
protected abstract T |
instantiateObject()
Creates the instances to be produced
|
boolean |
isDynamic()
Whether any of the registered
ValueResolvers are dynamic |
protected final ResolverSet resolverSet
public ResolverSetBasedObjectBuilder(Class<?> prototypeClass, ResolverSet resolverSet)
public ResolverSetBasedObjectBuilder(Class<?> prototypeClass, org.mule.runtime.api.meta.model.parameter.ParameterizedModel model, ResolverSet resolverSet)
public boolean isDynamic()
ValueResolvers are dynamicisDynamic in interface ObjectBuilder<T>true if at least one resolver is dynamic. false otherwisepublic final T build(Event event) throws org.mule.runtime.api.exception.MuleException
Event will be used to obtain a value from each registered
ValueResolverbuild in interface ObjectBuilder<T>event - a Eventorg.mule.runtime.api.exception.MuleExceptionpublic T build(ResolverSetResult result) throws org.mule.runtime.api.exception.MuleException
org.mule.runtime.api.exception.MuleExceptionprotected abstract T instantiateObject()
Copyright © 2003–2017 MuleSoft, Inc.. All rights reserved.