Package org.apache.ofbiz.service.engine
Class AbstractEngine
- java.lang.Object
-
- org.apache.ofbiz.service.engine.AbstractEngine
-
- All Implemented Interfaces:
GenericEngine
- Direct Known Subclasses:
GenericAsyncEngine
,JmsServiceEngine
public abstract class AbstractEngine extends java.lang.Object implements GenericEngine
Abstract Service Engine
-
-
Field Summary
Fields Modifier and Type Field Description protected ServiceDispatcher
dispatcher
protected static java.util.Map<java.lang.String,java.lang.String>
locationMap
static java.lang.String
module
-
Fields inherited from interface org.apache.ofbiz.service.engine.GenericEngine
ASYNC_MODE, SYNC_MODE
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractEngine(ServiceDispatcher dispatcher)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
allowCallbacks(ModelService model, java.util.Map<java.lang.String,java.lang.Object> context, int mode)
protected static java.util.Map<java.lang.String,java.lang.String>
createLocationMap()
protected java.lang.String
getLocation(ModelService model)
void
sendCallbacks(ModelService model, java.util.Map<java.lang.String,java.lang.Object> context, int mode)
Send the service callbacksvoid
sendCallbacks(ModelService model, java.util.Map<java.lang.String,java.lang.Object> context, java.lang.Throwable t, int mode)
void
sendCallbacks(ModelService model, java.util.Map<java.lang.String,java.lang.Object> context, java.util.Map<java.lang.String,java.lang.Object> result, int mode)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.ofbiz.service.engine.GenericEngine
runAsync, runAsync, runSync, runSyncIgnore
-
-
-
-
Field Detail
-
module
public static final java.lang.String module
-
locationMap
protected static final java.util.Map<java.lang.String,java.lang.String> locationMap
-
dispatcher
protected ServiceDispatcher dispatcher
-
-
Constructor Detail
-
AbstractEngine
protected AbstractEngine(ServiceDispatcher dispatcher)
-
-
Method Detail
-
createLocationMap
protected static java.util.Map<java.lang.String,java.lang.String> createLocationMap()
-
getLocation
protected java.lang.String getLocation(ModelService model)
-
sendCallbacks
public void sendCallbacks(ModelService model, java.util.Map<java.lang.String,java.lang.Object> context, int mode) throws GenericServiceException
Description copied from interface:GenericEngine
Send the service callbacks- Specified by:
sendCallbacks
in interfaceGenericEngine
- Parameters:
model
- Service model objectcontext
- Map of name, value pairs composing the contextmode
- Service mode (sync or async)- Throws:
GenericServiceException
-
sendCallbacks
public void sendCallbacks(ModelService model, java.util.Map<java.lang.String,java.lang.Object> context, java.lang.Throwable t, int mode) throws GenericServiceException
- Specified by:
sendCallbacks
in interfaceGenericEngine
- Throws:
GenericServiceException
-
sendCallbacks
public void sendCallbacks(ModelService model, java.util.Map<java.lang.String,java.lang.Object> context, java.util.Map<java.lang.String,java.lang.Object> result, int mode) throws GenericServiceException
- Specified by:
sendCallbacks
in interfaceGenericEngine
- Throws:
GenericServiceException
-
allowCallbacks
protected boolean allowCallbacks(ModelService model, java.util.Map<java.lang.String,java.lang.Object> context, int mode) throws GenericServiceException
- Throws:
GenericServiceException
-
-