public final class SpringHelper
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
getSpringBean(ServletRequest request,
java.lang.String beanName,
java.lang.Class<T> beanClass,
boolean cacheInRequest)
Returns the Spring bean with name
beanName and of type beanClass. |
protected static void |
logDebugInfo(java.lang.Exception ex,
java.lang.String message) |
public static <T> T getSpringBean(ServletRequest request,
java.lang.String beanName,
java.lang.Class<T> beanClass,
boolean cacheInRequest)
beanName and of type beanClass. If the cacheInRequest
flag is set to true then the bean is cached in the request attributes.T - type of the beanrequest - 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 beannull if no bean could be resolvedprotected static void logDebugInfo(java.lang.Exception ex,
java.lang.String message)
Copyright © 2018 SAP SE. All Rights Reserved.