1011121314151617
public class LiveFileRefreshAspect { @Autowired Map<String, LiveFile> handlers; public void refreshLiveFile(LiveFileRefresh ann) throws Throwable { LiveFile handler = handlers.get(ann.value()); if (handler != null) handler.refresh(); }