Class ServicelayerUtils
java.lang.Object
de.hybris.platform.servicelayer.internal.service.ServicelayerUtils
Central internal utils for service layer.
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidenforceBeanScope(org.springframework.context.ApplicationContext ctx, String beanName, String scope) Test if a given bean is registered with a specified scope.static org.springframework.context.ApplicationContextReturns hybris platform application context.static booleanstatic boolean
-
Method Details
-
getApplicationContext
public static org.springframework.context.ApplicationContext getApplicationContext()Returns hybris platform application context. Please note that this will always start the hybris platform. -
enforceBeanScope
public static void enforceBeanScope(org.springframework.context.ApplicationContext ctx, String beanName, String scope) Test if a given bean is registered with a specified scope. This method either returns or throws a ConfigurationException.- Parameters:
ctx- ApplicationContext, must be instanceofAbstractApplicationContextbeanName- the name of the bean to testscope- the scope to test- Throws:
ConfigurationException- if either the context was noAbstractApplicationContextor the bean was not registered with given scope.
-
isSystemInitialized
public static boolean isSystemInitialized() -
isSystemNotInitialized
public static boolean isSystemNotInitialized()
-