⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 bbsinfomanageintroductionadvice.java

📁 hibernate项目实践
💻 JAVA
字号:
package com.px1987.webbbs.aop;
import org.springframework.aop.support.DelegatingIntroductionInterceptor;
import com.px1987.webbbs.exception.WebBBSException;
import com.px1987.webbbs.model.BBSInfoManageExtendsInterface;
import com.px1987.webbbs.model.BBSInfoVO;
import org.aopalliance.intercept.MethodInvocation;
public class BBSInfoManageIntroductionAdvice extends
		DelegatingIntroductionInterceptor implements
		BBSInfoManageExtendsInterface 
{
	public BBSInfoManageIntroductionAdvice() 
	{
	}
	public BBSInfoManageIntroductionAdvice(Object arg0) 
	{
		super(arg0);
	}	
	public boolean doExtendsSaveBBSInfo(BBSInfoVO oneBBSInfo)	throws WebBBSException 
	{
		System.out.println("在对doSaveBBSInfo方法的扩展功能的实现中获得用户名称为userName="
									+oneBBSInfo.getAuthor());
		return false;
	}
/*	可以不需要继承重写invoke方法
	public Object invoke(MethodInvocation invocation) throws Throwable
	{
		return super.invoke(invocation); //对原来的BBSInfoManageInterface接口中的doSaveBBSInfo方法进行调用	
	}
*/
}

⌨️ 快捷键说明

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