Adapter.docx
- 文档编号:30285678
- 上传时间:2023-08-13
- 格式:DOCX
- 页数:12
- 大小:213.19KB
Adapter.docx
《Adapter.docx》由会员分享,可在线阅读,更多相关《Adapter.docx(12页珍藏版)》请在冰豆网上搜索。
Adapter
香港城市大学
CITYUNIVERSITYOFHONGKONG
IS5314E-BusinessSystemIntegration
STUDENTNAME:
LINJIE
STUDENTID:
54349135
CONTENTS
1.Descriptionofadapter……………………………………………………………………………3
2.Critiqueforarticleofintegrationrequirementmethodology……………….…4
3.CritiquesforarticlesofAdapter…………………………………………………………..…5
3.1.Android-Best-Practice……………………………………………………………………..6
3.2.Javatechnology…………………………………………………………………………….…7
3.3.Intelligentdataadapters……………………………………...............................7
4.Innovativeideaforintegrationrequirementmethodology………………..……9
5.InnovativeideasforAdapter…………………………………………………………….……10
6.Conclusion……………………………………………………………………………………….……10
7.References……………………………………………………………………………………..………11
1.Descriptionofadapter
Astodescriptadapter,weshoulddefineitfirst,whatistheadapter?
Whatistheroleofitandhowitworked?
It’sdefinedasaclassinterfaceconvertedintoaninterfacethatclientsexpect,sothatletthetwoclasseswhichtheinterfacedoesnotmatchtheoriginalbecauseunabletoworktogethercanworktogether.Adapterisaninterfaceconverter,itcanbeanindependenthardwareinterfacedevice,thatallowshardwareorelectronicinterfacecanconnectedtootherhardwareorelectronicinterface,it’salsocanbeinformationinterfacethatperformthedatatranslationandtransformationatthetarget.Forexample:
poweradapter,tripodadapterbaseparts,USBandserialportadapterequipmentandsoon.
Usingoftheadapterinourlifeisveryhighfrequencies,suchasacomputer,thenwhatistheroleandfunctionsoftheadapter?
Whenweunderstandingthisdevice,actuallyitcanbeanalyzedbythepopularpointofview,whatiscalledadapterisanaccessorythatisintermediatephasecoupling,ofcourseduringthetimeweconductinghardwaredesignwehavetotakeintoaccountthehardwaredesignrequirementsanddesignprinciples.Fortheroleofadapter,itcanadjustalayout,butalsoforitsinterface,ithastheabilitytodesignandcarryoutareorganizationoftheport,dependingontheoperationprincipleofthedeviceduringuseview.
Ithasmanytypes,wecanaccordingtoourneedtochoosetheadapter,thefunctionofadapterisquiteperfect,becausedifferenttypesofadaptercorrespondingfunctioniscompletelydifferent,ofcourse,whenweselectingtheadapter,wealsoneedtoconsideradaptionofotheraccessoriescombination,inthiscase,whenmakingadjustmentstobeabletoreflectacertaindegreeofconvenienceandflexibilitytolettherealrelativeaccessequipmentandaccessoriesplayaroleintheprocess.
Theadapterwediscussedinthiscourseismostlyaboutthird-partyadapters,whicharegeneralizedAPIsthatprovideacommonsetoffunctioncallsacrossdifferentapplications(includingmessagebroker,ESBs,transactionsystem,applicationservers),someintelligentadapterscanperformthedatatranslationandtransformationatthetarget,andsomenon-intelligentadaptersprovidebasicconnectivityandthetranslationandtransformationisdoneatthehub.
2.Critiqueforarticleofintegrationrequirementmethodology
Article:
Business’NewRequirement:
InformationSystemsIntegration-MethodsandTechnologies
Inthisarticle,theydiscussedandpresentdifferenttypesofinformationsystemthatusedbycompanies,suchasERP(EnterpriseResourcePlanning),SCM(SupplyChainManagement),CRM(CustomerRelationshipManagement),alsothepossiblemethodologyofintegratingthesesystems,andduringtheprocessofsystemsintegration,thereweresomeintegrationofdata(database,datawarehouse)thathandledbythosesystems,andthemethodologyofdataintegrationalsobeconsidered.
ThefirstwayisintegrationthroughBusinessServicesandProcess,themostpopularusedmethodsofserviceintegrationisSOA(ServiceOrientedArchitecture)andESB(EnterpriseServiceBus),themostpopularusedmethodsofprocessintegrationisBPM(BusinessProcessManagement)andBPEL(BusinessProcessExecutionLanguage).Thosemethodologiesallcanplayanimportantroleinsystemintegration,helpdefineandsolvetheintegrationrequirementsofsystemintegration,theintegrationrequirementsisacriticalfactorsofthesystemintegrationwhetheritissuccessfulornot,weshouldclearlyunderstanditbeforetheintegrationprocess,sothatcanavoiderrorsandmistakesduringtheintegrationprocess,themethodologyofintegrationrequirementsisveryimportantandnecessary.
Theintegrationrequirementsoftheinformationsystemsfortoday’scompaniesisnecessarymorethaneverbefore,thereweretensandhundredsofindependentsystemsorapplicationsinacompany,thatinvolvesahighlycostandmoretimetomatchingtheinformationfromdifferentsystemsorapplications.Sothat,theintegrationinformationsystemsmustinterconnectionandintercommunicationasacomplex,completeandcoherentsystem,allintegrationmembersshouldintervenesoastoensurecompatibilityandcombinedinteroperability,improvetheoperationalintegrationbyanenterprisesystemcanaffectthewholeorganizationandalsocanbringpositivelyimpactofthecompany’sperformance,nomattertheintegrationmethodortechnologyused.
Formyopinion,integrationrequirementsisavitalandessentialpartinsystemintegration.Innowadays,wearelivinginatechnologyera,everythingarerelatetotechnology,anddifferentkindsofsystemsareusedinourdailylife,soweneedintegrationsuchsystemstomakethetechnologymoreefficientandbetteruseforus.SothatIsuggestweshoulddefinesomeintegrationrequirementsmodeforsomespecificrequirements,thencansystematicandblamelessfoundtherequirementsandsolvedthem,reducedcostanderrors,betterimplementthesystemintegration.
3.CritiquesforarticlesofAdapter
3.1Android-Best-Practice
Article:
BestPracticeofAdapter
Thisarticleiskindlyaboutthebestpracticeofadapter,describedthematterswhichneedattentionandoptimizationstrategieswhenusingadapterinAndroiddevelopmentandapplication.Theauthorgaveananswerabout“whetheradapterisvieworcontroller?
”
Adapterdoesnot“view”andnot“controller”,it’sabindingdeviceaboutdataandviews,theprogramcodeofdata,binder,viewsshouldnotbetiedtogether.Thenhedidaresearchaboutadapter,tofinalizeabasetocall.Atthefirst,shoulddefinetherequirementsabouttheresearch,suchasthedatashouldnotknowtheexistingofadapterandview,adaptershouldnotbeanindependentclass,butaninternalclassoffragmentandactivity,andalsohassomerequirementthatnottoorelatedtoadapter,thensolvedthoserequirementsonebyone.
Fromtheresearchweknowthatadapterjustonlyasadataandabinderofitem,neitherbelongtoviewnorcontroller,it’ssimilartoautilityclass.Itemisview,andshouldsharingaviewstandardwithactivityandfragment.Forexample,asimilarapproachhas“onBindViews()”and“setView()”.Thenwesaidhowitemasaseparateobjectcommunicatewithadapter,ifyouuse“commonAdapter”,thentheitemisanordinaryandyoucanpasstheobjectactivity.
Formyopinion,thisarticlehelpusunderstandtheroleofadapterinAndroiddevelopmentandapplication,thenwecanhaveabetteruseofit,withthebetteruseofadapter,wecaneasilysolvedtherequirementspresentedbydesignandproduct,andprovideabetterperformanceinAndroiddevelopmentandapplication.
3.2Javatechnology
Article:
Adaptermodeprincipleandexampleintroduction
Thispaperintroducedthebasicprinciplesoftheadapter,andthenthroughanexamplefromtheperspectiveofthereaderquicklyunderstandthecoderuntheadaptermode,thentodosomeintroductionabouttheapplicationofadaptermodeinJDK,atlast,dosomesummaryabouttwoadaptermodelsimplementationdifferences,advantagesanddisadvantages,applicationscenarios.
Adaptermodeadaptaclassinterfaceintouserexpect,anadapterusuallyallowedtheclassinterfacewhichcan’tworktogetherbecauseofincompatibleinterfacecanworktogether,thewayistowrappedtheownclassinterfaceintoanexistingclass,themainpurposeofadapterdesignmodeiscombiningtwounrelatedclasses,thereweretwocommonlyusedmethods,modifytheinterfaceofeachclassandifthereisnosourceordon’twanttomodifytheirinterfacebecauseofanapplication,thentheyneedtouseadaptertocreateahybridinterfacebetweenthetwointerface.
Thediagramshowedaboveisadapterpattern,therewerethreeimportantrolesexistinginadapterdesignpattern:
Adaptee,AdapterandTarget,twooftheexistingclassesyouwanttobegroupedtogetherisAdapteeandTarget.Relatedtothediagram,weneedtocreateanAdaptercombinethentogether.
Adaptermodeisalsoapackagingmode,alsohaspackagingfeaturesasdecorativepattern,moreover,objectAdaptermodealsohascommissionedmeaning.Overall,theadaptermodebelongtocompensationmode,dedicatedtoexpansionandmodificationinsystemlaterperiod.
Overuseoftheadapterwillmakingthesysteminaverymessyconditionanddifficulttograsptheentirety.Forexample,clearlyseetheinterfaceiscalledA,infact,theinternalisadaptedtoachieveBinterface,ifthishappenstoomuchinasystem,it’stantamounttoadisaster.Soifit’snotnecessary,youcan’tuseanadapter,butdirectlytothesystemreconstruction.
3.3Intelligentdataadapters
Article:
IntelligentdataadaptersResearchandApplication
Inordertoletintelligentdataadapterhasversatilityindifferentbusinesssystem,theyresearchedtheexpertintelligentdataadapter,helpintelligentdataadapterconductingthedynamicDataConversion.
Intheprocessofinformation
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- Adapter