@Component @Scope public class JobTaskUtils extends Object implements org.springframework.context.ApplicationContextAware
Use Spring to get a full class of custom annotations.
Singleton patterns.
| 构造器和说明 |
|---|
JobTaskUtils() |
| 限定符和类型 | 方法和说明 |
|---|---|
static String |
getDefaultTaskKey(Class<?> clazz)
According to this class to get the default identifier
(default: the first letter is replaced by lowercase)
|
JobTaskBean |
getJobTask(String key)
Get the specified task.
|
Map<String,JobTaskBean> |
getJobTaskMap()
Get all the tasks.
|
Map<String,Map<String,JobTaskBean>> |
getJobTaskMapGroup(String notGroup)
Gets all the task classes displayed by the group.
|
Map<String,JobTaskBean> |
getJobTaskMapNotGroup(String notGroup)
Get all the tasks (remove a group).
|
void |
loadJobTaskBeans(Map<String,Object> jobTaskBeanMap)
Load jobTaskBeans from map by the annotation
|
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
Spring injection.
|
public static final String getDefaultTaskKey(Class<?> clazz)
clazz - Class informationpublic void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
throws org.springframework.beans.BeansException
setApplicationContext 在接口中 org.springframework.context.ApplicationContextAwareapplicationContext - the application contextorg.springframework.beans.BeansException - the exceptionpublic final Map<String,Map<String,JobTaskBean>> getJobTaskMapGroup(String notGroup)
notGroup - Remove the specified group, not empty when empty.public final Map<String,JobTaskBean> getJobTaskMap()
public final Map<String,JobTaskBean> getJobTaskMapNotGroup(String notGroup)
notGroup - exclude the group's keypublic final JobTaskBean getJobTask(String key)
key - The task key.Copyright © 2018. All rights reserved.