T - the generic type of the instances to be producedpublic abstract class ResolverSetBasedObjectBuilder<T> extends Object implements ObjectBuilder<T>, org.mule.runtime.api.lifecycle.Initialisable
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 ExpressionManager |
expressionManager |
protected ReflectionCache |
reflectionCache |
protected ResolverSet |
resolverSet |
| Constructor and Description |
|---|
ResolverSetBasedObjectBuilder(Class<?> prototypeClass,
org.mule.runtime.api.meta.model.parameter.ParameterizedModel model,
ResolverSet resolverSet,
ExpressionManager expressionManager,
MuleContext context) |
ResolverSetBasedObjectBuilder(Class<?> prototypeClass,
ResolverSet resolverSet,
ExpressionManager expressionManager,
MuleContext context) |
| Modifier and Type | Method and Description |
|---|---|
T |
build(ResolverSetResult result) |
T |
build(ValueResolvingContext context)
Returns a new instance of the specified class.
|
ReflectionCache |
getReflectionCache() |
void |
initialise() |
protected abstract T |
instantiateObject()
Creates the instances to be produced
|
boolean |
isDynamic()
Whether any of the registered
ValueResolvers are dynamic |
protected void |
populate(ResolverSetResult result,
Object object) |
protected final ResolverSet resolverSet
protected ReflectionCache reflectionCache
protected ExpressionManager expressionManager
public ResolverSetBasedObjectBuilder(Class<?> prototypeClass, ResolverSet resolverSet, ExpressionManager expressionManager, MuleContext context)
public ResolverSetBasedObjectBuilder(Class<?> prototypeClass, org.mule.runtime.api.meta.model.parameter.ParameterizedModel model, ResolverSet resolverSet, ExpressionManager expressionManager, MuleContext context)
public boolean isDynamic()
ValueResolvers are dynamicisDynamic in interface ObjectBuilder<T>true if at least one resolver is dynamic. false otherwisepublic T build(ValueResolvingContext context) throws org.mule.runtime.api.exception.MuleException
ValueResolvingContext will be used to obtain a value
from each registered ValueResolverbuild in interface ObjectBuilder<T>context - a ValueResolvingContextorg.mule.runtime.api.exception.MuleExceptionpublic T build(ResolverSetResult result) throws org.mule.runtime.api.exception.MuleException
org.mule.runtime.api.exception.MuleExceptionprotected void populate(ResolverSetResult result, Object object) throws org.mule.runtime.api.exception.MuleException
org.mule.runtime.api.exception.MuleExceptionprotected abstract T instantiateObject()
public void initialise()
throws org.mule.runtime.api.lifecycle.InitialisationException
initialise in interface org.mule.runtime.api.lifecycle.Initialisableorg.mule.runtime.api.lifecycle.InitialisationExceptionpublic ReflectionCache getReflectionCache()
Copyright © 2003–2020 MuleSoft, Inc.. All rights reserved.