JWorld@TW the best professional Java site in Taiwan
      註冊 | 登入 | 全文檢索 | 排行榜  

» JWorld@TW » Java Application Framework » AOP  

按列印兼容模式列印這個話題 列印話題    把這個話題寄給朋友 寄給朋友    訂閱主題
reply to topicthreaded modego to previous topicgo to next topic
己加入精華區
by caterpillar at 2006-03-13 09:36
本主題所含的標籤
無標籤
作者 AOP 用在哪? [精華]
ingramchen

Web monkey



發文: 479
積分: 12
於 2006-03-12 21:44 user profilesend a private message to usersend email to ingramchenreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
AOP 是很熱很辣的東東,現在看到最多的應用不外乎:

1) logging
2) transaction
3) security
4) cache
5) monitor/trace
6) handle exception
7) validation
8) remote (這個好像 AOP 也沒辦法處理很好...)
9) dependency injection (Spring 2.0 獨有的功能)

如果連 servlet filter 也算進去的話,那麼還有
10) charactor encoding
11) page decoration (SiteMesh)
12) compression
...

硬是列了十來個... 不過這些應用都是偏系統方面的。domain 方面的就從來
沒看過了。不知有沒有人在 domain 中發現 cross-cutting concern,然後實際
用 AOP 來實作的?


ingramchen edited on 2006-03-12 21:48
reply to postreply to post
MyBlog | 訂便當管理系統

作者 Re:AOP 用在哪? [Re:ingramchen]
NoMoreFaith_





發文: 12
積分: 0
於 2006-03-12 22:10 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
ingramchen wrote:

不知有沒有人在 domain 中發現 cross-cutting concern,然後實際
用 AOP 來實作的?



Hi Guys

Maybe U can take a look at

Manning - AspectJ in Action : Ch12 implementing business rule

---------------------------------------------------------------------------------
諾曼地大空降 . 101 空降師


NoMoreFaith_ edited on 2006-03-13 10:24
reply to postreply to post
作者 Re:AOP 用在哪? [Re:NoMoreFaith_]
caterpillar

良葛格

版主

發文: 2613
積分: 70
於 2006-03-12 22:23 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
NoMoreFaith_ wrote:
Manning - AspectJ in Action : Ch12 implementing business rule


嘿!Good!雖然我還沒看過AspectJ,不過這應該是個不錯的資訊,有空來翻翻。。。

tempo之前曾談到AOP於Java ME之應用,也是個很有趣的想法。。Big Smile


reply to postreply to post
良葛格學習筆記
作者 Re:AOP 用在哪? [Re:NoMoreFaith_]
NoMoreFaith_





發文: 12
積分: 0
於 2006-03-12 22:27 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
NoMoreFaith_ wrote:
Hi Guys

Maybe U can take a look at

Manning - AspectJ in Action : Ch12 implementing business rule


and Maybe ...
  
Aspect-Oriented Software Development with Use Cases (Addison-Wesley Object Technology Series) by Ivar Jacobson and Pan-Wei Ng

---------------------------------------------------------------------------------
諾曼地大空降 . 101 空降師


NoMoreFaith_ edited on 2006-03-13 10:22
reply to postreply to post
作者 Re:AOP 用在哪? [Re:NoMoreFaith_]
ingramchen

Web monkey



發文: 479
積分: 12
於 2006-03-12 22:41 user profilesend a private message to usersend email to ingramchenreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
NoMoreFaith_ wrote:
and Maybe ...

Aspect-Oriented Software Development with Use Cases (Addison-Wesley Object Technology Series) by Ivar Jacobson and Pan-Wei Ng


Thanks a lot. Very useful information!


reply to postreply to post
MyBlog | 訂便當管理系統

作者 Re:AOP 用在哪? [Re:ingramchen]
semap





發文: 10
積分: 0
於 2006-05-19 00:16 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
之前對於AOP的應用我也有些疑問,
但是看過了 WebWork後, 意外的對AOP 有更深的感覺
有了AOP加IoC, WebWork的Action 硬是比Struts的Action更簡單, 更容易測試....

WebWork 棒棒棒!!!!!!


reply to postreply to post
作者 Re:AOP 用在哪? [Re:ingramchen]
ray_linn

什么都不懂的小白

版主

發文: 540
積分: 10
於 2006-06-29 13:45 user profilesend a private message to usersend email to ray_linnreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
logging 都有点勉强了~ 最重要的是三个吧:

Transacation control, security control 和cache control.


reply to postreply to post
飞翔的候鸟
作者 Re:AOP 用在哪? [Re:ingramchen]
neketsushonen





發文: 1
積分: 0
於 2006-07-01 06:44 user profilesend a private message to usersend email to neketsushonenreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
看了大家的發言後,我也忍不住想說幾句話:

我們公司正為一間股票市場開發網上應用程式的軟體。其中當然有買單阿,賣單阿等等的。

但是,並不是每一個人都可以買單的。比如說,你的帳號是0,你可以登入「買單」的網頁,然而,當你把資料都輸入完整了,而你按了submit,這些資料要得經過authorization module才可以正確存入資料庫。

於是,我們的應用程式架構現在是採用了servlet filter來實做這一方頁的須求。但,以我的看法 ,aop對這而言是在好不過了,因為aop最大的好處是,他可以intercept java object method call,這是純java所做不到的!


reply to postreply to post
If you called wisdon, help to others to solve theirs problem.
» JWorld@TW »  Java Application Framework » AOP

reply to topicthreaded modego to previous topicgo to next topic
  已讀文章
  新的文章
  被刪除的文章
Jump to the top of page

JWorld@TW 本站商標資訊

Powered by Powerful JuteForum® Version Jute 1.5.8