public final class ServicesManagerHelper extends Object
ServicesManagerHelper is a helper class that provides ServicesManager access in custom code (like event subscriber, custom filters, custom servlets). Usage in custom code -
ServicesManagerHelper.getServicesManager();
Modifier and Type | Method and Description |
---|---|
static ServicesManager |
getServicesManager()
Gets an instance of Services Manager to use in custom code.
|
static ServicesManager |
getServicesManager(HttpServletRequest httpRequest)
Gets an instance of Services Manager to use in custom code.
|
static ServicesManager |
getServicesManager(ServletContext context)
Gets an instance of Services Manager to use in custom code.
|
static void |
setServicesManagerSupplier(MWSupplier servicesManagerSupplier)
FOR INTERNAL USE ONLY.
|
public static void setServicesManagerSupplier(MWSupplier servicesManagerSupplier)
servicesManagerSupplier
- public static ServicesManager getServicesManager(HttpServletRequest httpRequest) throws MiddlewareException
Usage in Custom code: ServicesManagerHelper.getServicesManager(HttpServletRequest httpRequest)
httpRequest
- an instance of HttpServletRequestMiddlewareException
- Throws MiddlewareException in case of errorServicesManager
public static ServicesManager getServicesManager(ServletContext context) throws MiddlewareException
Usage in Custom code: ServicesManagerHelper.getServicesManager(ServletContext context)
context
- an instance of ServletContextMiddlewareException
- Throws MiddlewareException in case of errorServicesManager
public static ServicesManager getServicesManager() throws MiddlewareException
Usage in Custom code: ServicesManagerHelper.getServicesManager()
MiddlewareException
- Throws MiddlewareException in case of errorServicesManager
Copyright © 2019. All rights reserved.