multidatasourceobserver.java

来自「一个实用工具类」· Java 代码 · 共 35 行

JAVA
35
字号
/* * Copyright (C) butor.com. All rights reserved. * * This software is published under the terms of the GNU Library General * Public License (GNU LGPL), a copy of which has been included with this * distribution in the LICENSE.txt file.  */package org.butor.web.helper;import java.util.Observable;import java.util.Observer;import org.butor.cache.CacheService;import org.butor.log.Log;/** * Default observer for multi data source change event. *  * @author 	mateusfi */public class MultiDataSourceObserver implements Observer {	/**	 * @see java.util.Observer#update(Observable, Object)	 */	public void update(Observable o, Object arg) {		Log.logStr(this, Log.LOG_TYPE_INFO, "update", "Observer notified from " + o + " argument=" + arg);		CacheService.flush();	}}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?