public interface ObjectBuilder<T>
Class, populating its attributes based on a list of
ValueResolvers.
The built object's class must comply with the following requirements:
build(ValueResolvingContext)
method can be invoked several times on the same instance.
Each time build(ValueResolvingContext) is invoked, a new instance will be created and the resolvers
will be re evaluated with the given ValueResolvingContext.| Modifier and Type | Method and Description |
|---|---|
T |
build(ValueResolvingContext context)
Returns a new instance of the specified class.
|
boolean |
isDynamic()
Whether any of the registered
ValueResolvers are dynamic |
boolean isDynamic()
ValueResolvers are dynamictrue if at least one resolver is dynamic. false otherwiseT build(ValueResolvingContext context) throws org.mule.runtime.api.exception.MuleException
ValueResolvingContext will be used to obtain a value
from each registered ValueResolvercontext - a ValueResolvingContext{@link - MuleException}org.mule.runtime.api.exception.MuleExceptionCopyright © 2003–2019 MuleSoft, Inc.. All rights reserved.