T - the generic type of the resolved valuespublic class LifecycleAwareValueResolverWrapper<T> extends Object implements ValueResolver<T>, org.mule.runtime.api.lifecycle.Lifecycle
ValueResolver wrappers.
It propagates Lifecycle phases and DI to the wrapped resolver.
| Modifier and Type | Field and Description |
|---|---|
protected ValueResolver<T> |
delegate |
protected MuleContext |
muleContext |
| Constructor and Description |
|---|
LifecycleAwareValueResolverWrapper(ValueResolver<T> delegate) |
| Modifier and Type | Method and Description |
|---|---|
void |
dispose() |
void |
initialise() |
boolean |
isDynamic()
Returns
false if subsequent invocations to ValueResolver.resolve(ValueResolvingContext) will return the same value. |
T |
resolve(ValueResolvingContext context)
Resolves a value from the given
event |
void |
start() |
void |
stop() |
protected final ValueResolver<T> delegate
@Inject protected MuleContext muleContext
public LifecycleAwareValueResolverWrapper(ValueResolver<T> delegate)
public T resolve(ValueResolvingContext context) throws org.mule.runtime.api.exception.MuleException
ValueResolvereventresolve in interface ValueResolver<T>context - the context for the current resolution attemptorg.mule.runtime.api.exception.MuleException - if the resolution of the value failspublic boolean isDynamic()
ValueResolverfalse if subsequent invocations to ValueResolver.resolve(ValueResolvingContext) will return the same value. Notice
that if it returns true, then it might return different values per invocation but that's not guaranteed.isDynamic in interface ValueResolver<T>public void initialise()
throws org.mule.runtime.api.lifecycle.InitialisationException
initialise in interface org.mule.runtime.api.lifecycle.Initialisableorg.mule.runtime.api.lifecycle.InitialisationExceptionpublic void start()
throws org.mule.runtime.api.exception.MuleException
start in interface org.mule.runtime.api.lifecycle.Startableorg.mule.runtime.api.exception.MuleExceptionpublic void stop()
throws org.mule.runtime.api.exception.MuleException
stop in interface org.mule.runtime.api.lifecycle.Stoppableorg.mule.runtime.api.exception.MuleExceptionpublic void dispose()
dispose in interface org.mule.runtime.api.lifecycle.DisposableCopyright © 2003–2022 MuleSoft, Inc.. All rights reserved.