1 24 package org.ofbiz.service.engine; 25 26 import java.util.Map ; 27 28 import org.ofbiz.service.GenericRequester; 29 import org.ofbiz.service.GenericServiceException; 30 import org.ofbiz.service.ModelService; 31 import org.ofbiz.service.ServiceDispatcher; 32 33 40 public class InterfaceEngine implements GenericEngine { 41 42 public InterfaceEngine(ServiceDispatcher dispatcher) { } 43 44 47 public Map runSync(String localName, ModelService modelService, Map context) throws GenericServiceException { 48 throw new GenericServiceException("Interface services cannot be invoked; try invoking an implementing service."); 49 } 50 51 54 public void runSyncIgnore(String localName, ModelService modelService, Map context) throws GenericServiceException { 55 throw new GenericServiceException("Interface services cannot be invoked; try invoking an implementing service."); 56 } 57 58 61 public void runAsync(String localName, ModelService modelService, Map context, GenericRequester requester, boolean persist) throws GenericServiceException { 62 throw new GenericServiceException("Interface services cannot be invoked; try invoking an implementing service."); 63 } 64 65 68 public void runAsync(String localName, ModelService modelService, Map context, boolean persist) throws GenericServiceException { 69 throw new GenericServiceException("Interface services cannot be invoked; try invoking an implementing service."); 70 } 71 72 75 public void sendCallbacks(ModelService modelService, Map context, Object cbObj, int mode) throws GenericServiceException { 76 } 77 } 78 | Popular Tags |