public abstract class AbstractRunInRightEvent extends Object implements Comparable<RunInRightEvent>, RunInRightEvent
每天晚上1点执行的动作,你要实现此接口,然后配成一个Bean接口,如:
1. 写一个class,集成RunInRightEvent
public class ClearMeeting extends RunInRightEvent{
private MtMeetingManager mtMeetingManager;
public setMtMeetingManager(){}
public void run(){
mtMeetingManager.doSomthing();
}
}
2. 配成Bean
<bean id="XXX" class="com.seeyon.v3x.XXX.ClearMeeting">
</bean>
Over! Good Luck!
public abstract void run()
run 在接口中 RunInRightEventpublic int getPriority()
getPriority 在接口中 RunInRightEventpublic void setPriority(int priority)
setPriority 在接口中 RunInRightEventpublic final int compareTo(RunInRightEvent o)
compareTo 在接口中 RunInRightEventcompareTo 在接口中 Comparable<RunInRightEvent>Copyright © 2016–2017. All rights reserved.