T - the generic type of the returned valuespublic class LifecycleInitialiserValueResolverWrapper<T> extends LifecycleAwareValueResolverWrapper<T>
LifecycleAwareValueResolverWrapper which depending on the lifecycle state of the muleContext, applies
the Initialise and Start phases on the returned objects.
This resolver keeps track of all the returned values, making sure that lifecycle is only applied once on each possible return value.
delegate| Constructor and Description |
|---|
LifecycleInitialiserValueResolverWrapper(ValueResolver<T> delegate,
MuleContext muleContext)
Creates a new instance
|
| Modifier and Type | Method and Description |
|---|---|
void |
dispose() |
T |
resolve(ValueResolvingContext context)
Resolves a value from the given
event |
initialise, isDynamic, start, stoppublic LifecycleInitialiserValueResolverWrapper(ValueResolver<T> delegate, MuleContext muleContext)
delegate - the delegate resolvermuleContext - the current MuleContextpublic T resolve(ValueResolvingContext context) throws org.mule.runtime.api.exception.MuleException
ValueResolvereventresolve in interface ValueResolver<T>resolve in class LifecycleAwareValueResolverWrapper<T>context - the context for the current resolution attemptorg.mule.runtime.api.exception.MuleException - if the resolution of the value failspublic void dispose()
dispose in interface org.mule.runtime.api.lifecycle.Disposabledispose in class LifecycleAwareValueResolverWrapper<T>Copyright © 2003–2024 MuleSoft, Inc.. All rights reserved.