| java.lang.Object org.ofbiz.service.ServiceDispatcher
ServiceDispatcher | public class ServiceDispatcher (Code) | | Global Service Dispatcher
author: Andy Zeneski version: $Revision: 1.15 $ since: 2.0 |
Method Summary | |
public boolean | containsContext(String name) Test if this dispatcher instance contains the local context. | public void | deregister(LocalDispatcher local) | public GenericDelegator | getDelegator() | public GenericEngine | getGenericEngine(String engineName) | public static ServiceDispatcher | getInstance(String name, GenericDelegator delegator) Returns a pre-registered instance of the ServiceDispatcher associated with this delegator. | public static ServiceDispatcher | getInstance(String name, DispatchContext context, GenericDelegator delegator) Returns an instance of the ServiceDispatcher associated with this delegator and registers the loader. | public JmsListenerFactory | getJMSListenerFactory() Gets the JmsListenerFactory which holds the message listeners. | public JobManager | getJobManager() | public DispatchContext | getLocalContext(String name) | public LocalDispatcher | getLocalDispatcher(String name) Gets the local dispatcher from a name
Parameters: name - of the LocalDispatcher to find. | public Security | getSecurity() | public void | register(String name, DispatchContext context) | public void | runAsync(String localName, ModelService service, Map context, GenericRequester requester, boolean persist) Run the service asynchronously, passing an instance of GenericRequester that will receive the result. | public void | runAsync(String localName, ModelService service, Map context, boolean persist) Run the service asynchronously and IGNORE the result. | public Map | runSync(String localName, ModelService service, Map context) Run the service synchronously and return the result.
Parameters: localName - Name of the context to use. Parameters: service - Service model object. Parameters: context - Map of name, value pairs composing the context. | public Map | runSync(String localName, ModelService modelService, Map context, boolean validateOut) Run the service synchronously and return the result. | public void | runSyncIgnore(String localName, ModelService service, Map context) Run the service synchronously and IGNORE the result. | protected void | shutdown() |
dispatchers | protected static Map dispatchers(Code) | | |
containsContext | public boolean containsContext(String name)(Code) | | Test if this dispatcher instance contains the local context.
Parameters: name - of the local context true if the local context is found in this dispatcher. |
deregister | public void deregister(LocalDispatcher local)(Code) | | De-Registers the loader with this ServiceDispatcher
Parameters: local - the LocalDispatcher to de-register |
getDelegator | public GenericDelegator getDelegator()(Code) | | Gets the GenericDelegator associated with this dispatcher
GenericDelegator associated with this dispatcher |
getGenericEngine | public GenericEngine getGenericEngine(String engineName) throws GenericServiceException(Code) | | Gets the GenericEngine instance that corresponds to the given name
Parameters: engineName - Name of the engine GenericEngine instance that corresponds to the engineName |
getInstance | public static ServiceDispatcher getInstance(String name, GenericDelegator delegator)(Code) | | Returns a pre-registered instance of the ServiceDispatcher associated with this delegator.
Parameters: delegator - the local delegator A reference to this global ServiceDispatcher |
getInstance | public static ServiceDispatcher getInstance(String name, DispatchContext context, GenericDelegator delegator)(Code) | | Returns an instance of the ServiceDispatcher associated with this delegator and registers the loader.
Parameters: name - the local dispatcher Parameters: context - the context of the local dispatcher Parameters: delegator - the local delegator A reference to this global ServiceDispatcher |
getJMSListenerFactory | public JmsListenerFactory getJMSListenerFactory()(Code) | | Gets the JmsListenerFactory which holds the message listeners.
JmsListenerFactory |
getJobManager | public JobManager getJobManager()(Code) | | Gets the JobManager associated with this dispatcher
JobManager that is associated with this dispatcher |
getLocalContext | public DispatchContext getLocalContext(String name)(Code) | | Gets the local context from a name
Parameters: name - of the context to find. |
getLocalDispatcher | public LocalDispatcher getLocalDispatcher(String name)(Code) | | Gets the local dispatcher from a name
Parameters: name - of the LocalDispatcher to find. LocalDispatcher matching the loader name |
getSecurity | public Security getSecurity()(Code) | | Gets the Security object associated with this dispatcher
Security object associated with this dispatcher |
register | public void register(String name, DispatchContext context)(Code) | | Registers the loader with this ServiceDispatcher
Parameters: name - the local dispatcher Parameters: context - the context of the local dispatcher |
|
|