首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 软件管理 > 软件架构设计 >

aopalliance.intercept 现实应用

2012-10-28 
aopalliance.intercept实际应用?? XML文件配置:?? ?xml version1.0 encodingUTF-8?!--http://www

aopalliance.intercept 实际应用

?? XML文件配置:

?? <?xml version="1.0" encoding="UTF-8"?>
<!--http://www.springframework.org/dtd/-->
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN"

?"http://www.springframework.org/dtd/spring-beans.dtd">
<beans>


<bean id="authManager" + e.getMessage());
?}

??return retVal;
?}

?

?

?private void process_buildAuthToken(MethodInvocation methodInvocation, AuthToken authToken) throws Throwable {
??List deptAncestors = (List) authToken.getAttribute("deptAncestors");
??String flowDept = getFlowStartDept(deptAncestors);
??
??if (flowDept != null&&(!"AHA".equals(flowDept))){
?自己要做的事情

??}

}


?}

?

?

?=======================================================

?

?? 应用代码

?

?AuthManager authManager = (AuthManager) getBean(AuthManager.BEAN_ID);
???AuthToken authToken = authManager.getAuthToken(userCode, password);

?

==============

附件JAR

热点排行