org.broadleafcommerce.common.extension
Class ExtensionResultHolder

java.lang.Object
  extended by org.broadleafcommerce.common.extension.ExtensionResultHolder

public class ExtensionResultHolder
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

Constructor Summary
ExtensionResultHolder()
           
 
Method Summary
 Map<String,Object> getContextMap()
           
 Object getResult()
           
 Throwable getThrowable()
           
 void setResult(Object result)
           
 void setThrowable(Throwable throwable)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExtensionResultHolder

public ExtensionResultHolder()
Method Detail

getResult

public Object getResult()

setResult

public void setResult(Object result)

getThrowable

public Throwable getThrowable()

setThrowable

public void setThrowable(Throwable throwable)

getContextMap

public Map<String,Object> getContextMap()


Copyright © 2013. All Rights Reserved.