Class ExtensionResultHolder<T>

java.lang.Object
org.broadleafcommerce.common.extension.ExtensionResultHolder<T>

public class ExtensionResultHolder<T> extends Object
If a service extension using the 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()

Author:
bpolster
  • Field Details

  • Constructor Details

    • ExtensionResultHolder

      public ExtensionResultHolder()
  • Method Details

    • getResult

      public T getResult()
    • setResult

      public void setResult(T result)
    • getThrowable

      public Throwable getThrowable()
    • setThrowable

      public void setThrowable(Throwable throwable)
    • getContextMap

      public Map<String,Object> getContextMap()