Class SpringHelper
java.lang.Object
de.hybris.platform.acceleratorcms.utils.SpringHelper
Deprecated, for removal: This API element is subject to removal in a future version.
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> TgetSpringBean(javax.servlet.ServletRequest request, String beanName, Class<T> beanClass, boolean cacheInRequest) Deprecated, for removal: This API element is subject to removal in a future version.Since 2205 UseSpringHelper.getSpringBean(ServletRequest, String, Class, boolean)instead Returns the Spring bean with namebeanNameand of typebeanClass.
-
Method Details
-
getSpringBean
@Deprecated(since="2205", forRemoval=true) public static <T> T getSpringBean(javax.servlet.ServletRequest request, String beanName, Class<T> beanClass, boolean cacheInRequest) Deprecated, for removal: This API element is subject to removal in a future version.Since 2205 UseSpringHelper.getSpringBean(ServletRequest, String, Class, boolean)instead Returns the Spring bean with namebeanNameand of typebeanClass. If the cacheInRequest flag is set to true then the bean is cached in the request attributes.- Type Parameters:
T- type of the bean- Parameters:
request- the http requestbeanName- name of the beanbeanClass- expected type of the beancacheInRequest- flag, set to true to use the request attributes to cache the spring bean- Returns:
- the bean matching the given arguments or
nullif no bean could be resolved
-
SpringHelperinstead Static class used to lookup a spring bean by name and type.