package com.eactive.eai.rms.client.handler;//package com.eactive.eai.rms.client.handler;
//
//import org.apache.mina.common.IoSession;
//
//import org.springframework.context.ApplicationContext;
//import org.springframework.context.ApplicationContextAware;
//import org.springframework.context.support.ClassPathXmlApplicationContext;
//
//import com.eactive.eai.rms.onl.vo.RefreshCommand;
//
//public class RefreshCommandHandler implements IMessageHandler,
//        ApplicationContextAware {
//
//    private ApplicationContext applicationContext;
//
//    public void setApplicationContext(ApplicationContext applicationContext) {
//        this.applicationContext = applicationContext;
//    }
//
//    public Class<?> targetClass() {
//        return RefreshCommand.class;
//    }
//
//    public void messageReceived(IoSession session, Object message)
//            throws Exception {
//
//        ClassPathXmlApplicationContext applicationContext = (ClassPathXmlApplicationContext) this.applicationContext;
//        applicationContext.refresh();
//
//    }
//}
