public final class ServicelayerUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
enforceBeanScope(ApplicationContext ctx,
String beanName,
String scope)
Test if a given bean is registered with a specified scope.
|
static ApplicationContext |
getApplicationContext()
Returns hybris platform application context.
|
static boolean |
isSystemInitialized() |
static boolean |
isSystemNotInitialized() |
public static ApplicationContext getApplicationContext()
public static void enforceBeanScope(ApplicationContext ctx,
String beanName,
String scope)
ctx - ApplicationContext, must be instanceof AbstractApplicationContextbeanName - the name of the bean to testscope - the scope to testConfigurationException - if either the context was no AbstractApplicationContext or the bean was not registered with
given scope.public static boolean isSystemInitialized()
public static boolean isSystemNotInitialized()
Copyright © 2017 SAP SE. All Rights Reserved.