Class SpringPro
- java.lang.Object
-
- cn.cloudself.query.util.framework.SpringPro
-
- All Implemented Interfaces:
org.springframework.beans.factory.Aware,org.springframework.context.ApplicationContextAware
@Component public class SpringPro extends Object implements org.springframework.context.ApplicationContextAware
-
-
Constructor Summary
Constructors Constructor Description SpringPro()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static booleanareProfileActive(String... testForAny)static String[]getActiveProfiles()static <T> TgetBean(Class<T> beanType)static ObjectgetBean(String name)static <T> TgetBean(String name, Class<T> clazz)voidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext)
-
-
-
Method Detail
-
setApplicationContext
public void setApplicationContext(@NotNull org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException- Specified by:
setApplicationContextin interfaceorg.springframework.context.ApplicationContextAware- Throws:
org.springframework.beans.BeansException
-
getBean
@Nullable public static <T> T getBean(Class<T> beanType)
-
getActiveProfiles
public static String[] getActiveProfiles()
-
areProfileActive
public static boolean areProfileActive(String... testForAny)
-
-