All Methods Static Methods Concrete Methods
Modifier and Type |
Method and Description |
static BeanDefinition |
addDependsOn(BeanDefinition beanDefinition,
String... beanNames)
Adds an array of bean dependencies (by name) to the given BeanDefinition .
|
static boolean |
areNotNull(Object... values)
Determines whether all the Object values in the array are non-null
|
static String |
defaultIfEmpty(String value,
String defaultValue) |
static String |
defaultIfEmpty(String value,
Supplier<String> supplier) |
static <T> T |
defaultIfNull(T value,
Supplier<T> supplier) |
static <T> T |
defaultIfNull(T value,
T defaultValue) |
static String |
dereferenceBean(String beanName) |
static boolean |
equalsIgnoreNull(Object obj1,
Object obj2) |
static <T> List<T> |
getBeansOfTypeOrdered(ConfigurableListableBeanFactory beanFactory,
Class<T> beanType)
Returns a List of beans by the given type in order.
|
static <T> List<T> |
getBeansOfTypeOrdered(ConfigurableListableBeanFactory beanFactory,
Class<T> beanType,
boolean includeNonSingletons,
boolean allowEagerInit)
Returns a List of beans by the given type in order.
|
static Integer |
getOrder(Object target)
|
static <T> Stream<T> |
getOrderedStreamOfBeansByType(BeanFactory beanFactory,
Class<T> beanType)
Returns bean of the given type in an ordered Stream .
|
static Optional<Object> |
getPropertyValue(BeanDefinition beanDefinition,
String propertyName) |
static boolean |
isMatchingBean(BeanFactory beanFactory,
String beanName,
Class<?> beanType)
|
static boolean |
nullOrEquals(Object obj1,
Object obj2) |
static boolean |
nullSafeEquals(Object obj1,
Object obj2) |
static String |
nullSafeName(Class<?> type) |
static String |
nullSafeSimpleName(Class<?> type) |
static Class<?> |
nullSafeType(Object target) |
static Class<?> |
nullSafeType(Object target,
Class<?> defaultType) |
static <T> T |
requireObject(Supplier<T> objectSupplier,
String message) |
static <T> T |
requireObject(T object,
String message) |
static boolean |
safeDoOperation(SpringExtensions.VoidReturningThrowableOperation operation) |
static boolean |
safeDoOperation(SpringExtensions.VoidReturningThrowableOperation operation,
Runnable backupOperation) |
static <T> T |
safeGetValue(SpringExtensions.ValueReturningThrowableOperation<T> operation) |
static <T> T |
safeGetValue(SpringExtensions.ValueReturningThrowableOperation<T> operation,
Function<Throwable,T> exceptionHandler) |
static <T> T |
safeGetValue(SpringExtensions.ValueReturningThrowableOperation<T> operation,
Supplier<T> defaultValueSupplier) |
static <T> T |
safeGetValue(SpringExtensions.ValueReturningThrowableOperation<T> operation,
T defaultValue) |
static void |
safeRunOperation(SpringExtensions.VoidReturningThrowableOperation operation) |
static void |
safeRunOperation(SpringExtensions.VoidReturningThrowableOperation operation,
Function<Throwable,RuntimeException> exceptionConverter) |
static BeanDefinition |
setPropertyReference(BeanDefinition beanDefinition,
String propertyName,
String beanName) |
static BeanDefinition |
setPropertyValue(BeanDefinition beanDefinition,
String propertyName,
Object propertyValue) |