资源描述:
《Feature-Oriented Design Patterns面向特征的设计模式》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、OntheDualityofAspect-OrientedandFeature-OrientedDesignPatternsMartinKuhlemann,ThomasLeichMarkoRosenmuller,SvenApel¨METOPResearchInstituteSchoolofComputerScience,Sandtorstrasse23UniversityofMagdeburg39106Magdeburg,GermanyP.O.Box4120thomas.leich@metop.de39016Magdeburg,Germany{kuhleman
2、n,rosenmueller,apel}@iti.cs.uni-magdeburg.deABSTRACTorientedprogramming(OOP)[9].DespiteitssuccessinsoftwaredevelopmentHannemannetal.observedalackofDesignpatternsaimatimprovingreusabilityandvariabil-modularity,composabilityandreusabilityintherespectiveityofobject-orientedsoftware.Des
3、piteanotablesuccess,object-orienteddesigns[14].Theytracethislacktotheaspect-orientedprogramming(AOP)hasbeendiscussedre-presenceofcrosscuttingconcerns.Crosscuttingconcernsarecentlytoimprovethedesignpatternimplementations.Indesignandimplementationproblemsthatresultincodetan-anotherlin
4、eofresearchithasbeennoticedthatfeature-gling,scattering,andreplicationofcodewhenasoftwareisorientedprogramming(FOP)isrelatedcloselytoAOPanddecomposedalongonedimension[24],e.g.,thedecompo-thatFOPsufficesinmanysituationswhereAOPiscom-sitionintoclassesandobjectsinOOP.Toovercomethismonlyu
5、sed.InthispaperweexploretheassumeddualitylimitationseveraladvancedmodularizationtechniqueshavebetweenAOPandFOPmechanisms.Asacasestudywebeenproposed,amongstothersaspect-orientedprogrammingusetheaspect-orienteddesignpatternimplementationsof(AOP)[17]andfeature-orientedprogramming(FOP)[
6、21,7].HannemannandKiczales.WeobservethatalmostallofBothparadigmsprovidemechanismstomodularizecross-the23aspect-orienteddesignpatternimplementationscancuttingconcerns.WhileAOPisbasedonaspects,advicebetransformedstraightforwardlyintoequivalentfeature-andinter-typedeclarations,FOPisbas
7、edoncollaborationorienteddesignpatterns.Forfurtherinvestigationswepro-designandrefinements.videasetofgeneralruleshowtotransformaspect-orientedAlthoughthereareseveralsuccessstoriesofAOPingen-programsintofeature-orientedprograms.eral[11,15,12,28]andofaspect-orienteddesignpatterns[14,8]
8、,therearemanyvoices