public class ExtensionResultHolder<T> extends Object
ExtensionManager
pattern expects a result from the extension, it should
pass in an instance of this class into the method call.
The extension points can examine or update this class with response information and set a single return value with
setResult(Object)
or add values via the contextMap provided with getContextMap()
Modifier and Type | Field and Description |
---|---|
protected Map<String,Object> |
contextMap |
protected T |
result |
protected Throwable |
throwable |
Constructor and Description |
---|
ExtensionResultHolder() |
Modifier and Type | Method and Description |
---|---|
Map<String,Object> |
getContextMap() |
T |
getResult() |
Throwable |
getThrowable() |
void |
setResult(T result) |
void |
setThrowable(Throwable throwable) |
Copyright © 2022. All rights reserved.