AspectOriented

ロギングや同期処理をアスペクトにまとめる。 require 'thread' require 'aspectr' include AspectR class MutexArary Aspect def lock(method, object, status, *args) object.mutex.lock end def unlock(method, object, status, *args) object.mutex.unlo…

前にPython/AOP/DesignPatternを試みていた時の情報元。Java/AspectJによるGoFパターンの例 http://www.cs.ubc.ca/~jan/AODPs/MetaClassを利用したAOPアプローチ http://mail.python.org/pipermail/python-list/2002-June/111061.htmlaop.pyはここ http://py…