Interface ExtensionManagerOperation
public interface ExtensionManagerOperation
Responsible for exercising a method on an
ExtensionHandler
. This provides a vehicle for exercising an ExtensionHandler
API via direct call, rather than reflection. This could be important for performance if a high volume of calls are being
made. See ExtensionManager.execute(ExtensionManagerOperation, Object...)
.- Author:
- Jeff Fischer
-
Method Summary
Modifier and TypeMethodDescriptionexecute
(ExtensionHandler handler, Object... params) Call a method on the handler using some params.
-
Method Details
-
execute
Call a method on the handler using some params. This generally involves casting to the proper types. For example:public static final ExtensionManagerOperation applyAdditionalFilters = new ExtensionManagerOperation() { @Override public ExtensionResultStatusType execute(ExtensionHandler handler, Object... params) { return ((OfferServiceExtensionHandler) handler).applyAdditionalFilters((List<Offer>) params[0], (Order) params[1]); } };
- Parameters:
handler
-params
-- Returns:
- the result
-