类 ApplicationContextHelper
- java.lang.Object
-
- net.sinodawn.framework.context.ApplicationContextHelper
-
- 所有已实现的接口:
org.springframework.beans.factory.Aware,org.springframework.context.ApplicationContextAware
@Component public class ApplicationContextHelper extends Object implements org.springframework.context.ApplicationContextAware
-
-
构造器概要
构造器 构造器 说明 ApplicationContextHelper()
-
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 static <ID extends Serializable>
List<CoreParentTableInstanceDTO>getAncientTableInstanceList(String table, List<ID> idList)static StringgetAppId()static org.springframework.context.ApplicationContextgetApplicationContext()static <T> TgetBean(Class<T> clazz)static <T> TgetBean(String name)static <T> TgetBeanIfPresent(String name)static StringgetConstantValue(String id)static StringgetConstantValue(String id, String defaultValue)static org.springframework.core.env.EnvironmentgetEnvironment()static org.mybatis.spring.SqlSessionTemplategetMybatisSqlSessionTemplate()static LonggetNextIdentity()static List<Long>getNextIdentityList(int qty)static LonggetNextOrderNo()static List<Long>getNextOrderNoList(int qty)static <T extends GenericService<?,?>>
TgetServiceByTable(String table)static booleanisProfileActivated(String profile)voidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext)
-
-
-
方法详细资料
-
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()
-
getNextOrderNo
public static Long getNextOrderNo()
-
getServiceByTable
public static <T extends GenericService<?,?>> T getServiceByTable(String table)
-
isProfileActivated
public static boolean isProfileActivated(String profile)
-
getAncientTableInstanceList
public static <ID extends Serializable> List<CoreParentTableInstanceDTO> getAncientTableInstanceList(String table, List<ID> idList)
-
-