@Test public void handleNullToInit() { MobileMsgSequenceMonitor m = new MobileMsgSequenceMonitor(); m.initialize((Map<String, Object>)null); }
@Override public void initialize(Map<String,Object> params) { super.initialize(params); String contextName = ParameterMap.getKeyedString(params, CONTEXT_KEY, DEFAULT_CONTEXT_NAME); m_phonebook = BeanUtils.getBean(contextName, "phonebook", Phonebook.class); m_tracker = BeanUtils.getBean(contextName, "mobileMsgTracker", MobileMsgTracker.class); m_coordinator = BeanUtils.getBean(contextName, "sequenceTaskCoordinator", DefaultTaskCoordinator.class); }
MobileMsgSequenceMonitor extends AbstractServiceMonitor { @Override public void initialize(Map<String,Object> params) { super.initialize(params); String contextName = ParameterMap.getKeyedString(params, CONTEXT_KEY, DEFAULT_CONTEXT_NAME); m_phonebook = BeanUtils.getBean(contextName, "phonebook", Phonebook.class); m_tracker = BeanUtils.getBean(contextName, "mobileMsgTracker", MobileMsgTracker.class); m_coordinator = BeanUtils.getBean(contextName, "sequenceTaskCoordinator", DefaultTaskCoordinator.class); } }
MobileMsgSequenceMonitor extends AbstractServiceMonitor { @Override public void initialize(Map<String,Object> params) { super.initialize(params); String contextName = ParameterMap.getKeyedString(params, CONTEXT_KEY, DEFAULT_CONTEXT_NAME); m_phonebook = BeanUtils.getBean(contextName, "phonebook", Phonebook.class); m_tracker = BeanUtils.getBean(contextName, "mobileMsgTracker", MobileMsgTracker.class); m_coordinator = BeanUtils.getBean(contextName, "sequenceTaskCoordinator", DefaultTaskCoordinator.class); }  }
MobileMsgSequenceMonitor extends AbstractServiceMonitor { @Override public void initialize(Map<String,Object> params) { super.initialize(params); String contextName = ParameterMap.getKeyedString(params, CONTEXT_KEY, DEFAULT_CONTEXT_NAME); m_phonebook = BeanUtils.getBean(contextName, "phonebook", Phonebook.class); m_tracker = BeanUtils.getBean(contextName, "mobileMsgTracker", MobileMsgTracker.class); m_coordinator = BeanUtils.getBean(contextName, "sequenceTaskCoordinator", DefaultTaskCoordinator.class); }  @Override void initialize(Map<String,Object> params); @Override PollStatus poll(MonitoredService svc, Map<String, Object> parameters); }
MobileMsgSequenceMonitor extends AbstractServiceMonitor { @Override public void initialize(Map<String,Object> params) { super.initialize(params); String contextName = ParameterMap.getKeyedString(params, CONTEXT_KEY, DEFAULT_CONTEXT_NAME); m_phonebook = BeanUtils.getBean(contextName, "phonebook", Phonebook.class); m_tracker = BeanUtils.getBean(contextName, "mobileMsgTracker", MobileMsgTracker.class); m_coordinator = BeanUtils.getBean(contextName, "sequenceTaskCoordinator", DefaultTaskCoordinator.class); }  @Override void initialize(Map<String,Object> params); @Override PollStatus poll(MonitoredService svc, Map<String, Object> parameters); static final String DEFAULT_CONTEXT_NAME; static final String CONTEXT_KEY; }