类 ApplicationContextHelper

  • 所有已实现的接口:
    org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware

    @Component
    public class ApplicationContextHelper
    extends Object
    implements org.springframework.context.ApplicationContextAware
    • 构造器详细资料

      • ApplicationContextHelper

        public ApplicationContextHelper()
    • 方法详细资料

      • setApplicationContext

        public void setApplicationContext​(org.springframework.context.ApplicationContext applicationContext)
                                   throws org.springframework.beans.BeansException
        指定者:
        setApplicationContext 在接口中 org.springframework.context.ApplicationContextAware
        抛出:
        org.springframework.beans.BeansException
      • getAppId

        public static String getAppId()
      • getApplicationContext

        public static org.springframework.context.ApplicationContext getApplicationContext()
      • getEnvironment

        public static org.springframework.core.env.Environment getEnvironment()
      • getBean

        public static <T> T getBean​(Class<T> clazz)
      • getBean

        public static <T> T getBean​(String name)
      • getMybatisSqlSessionTemplate

        public static org.mybatis.spring.SqlSessionTemplate getMybatisSqlSessionTemplate()
      • getBeanIfPresent

        public static <T> T getBeanIfPresent​(String name)
      • getNextIdentity

        public static Long getNextIdentity()
      • getNextIdentityList

        public static List<Long> getNextIdentityList​(int qty)
      • getNextOrderNoList

        public static List<Long> getNextOrderNoList​(int qty)
      • getNextOrderNo

        public static Long getNextOrderNo()
      • getServiceByTable

        public static <T extends GenericService<?,​?>> T getServiceByTable​(String table)
      • isProfileActivated

        public static boolean isProfileActivated​(String profile)
      • getConstantValue

        public static String getConstantValue​(String id)
      • getConstantValue

        public static String getConstantValue​(String id,
                                              String defaultValue)