外文翻译使用开放源码工具的专业便携式开发文档格式.docx

上传人:b****1 文档编号:13317190 上传时间:2022-10-09 格式:DOCX 页数:14 大小:216.33KB
下载 相关 举报
外文翻译使用开放源码工具的专业便携式开发文档格式.docx_第1页
第1页 / 共14页
外文翻译使用开放源码工具的专业便携式开发文档格式.docx_第2页
第2页 / 共14页
外文翻译使用开放源码工具的专业便携式开发文档格式.docx_第3页
第3页 / 共14页
外文翻译使用开放源码工具的专业便携式开发文档格式.docx_第4页
第4页 / 共14页
外文翻译使用开放源码工具的专业便携式开发文档格式.docx_第5页
第5页 / 共14页
点击查看更多>>
下载资源
资源描述

外文翻译使用开放源码工具的专业便携式开发文档格式.docx

《外文翻译使用开放源码工具的专业便携式开发文档格式.docx》由会员分享,可在线阅读,更多相关《外文翻译使用开放源码工具的专业便携式开发文档格式.docx(14页珍藏版)》请在冰豆网上搜索。

外文翻译使用开放源码工具的专业便携式开发文档格式.docx

DesignPatternConsiderationsinYourPortalClearly,therearemanywaystoimplementadesignthatcannotbeexpressedadequatelyinthischapteralone.Hopefully,theintroductionofhigh-levelpatternconstructsandbriefdiscussionoftheimplementationofJavastandardsinthischaptercanfacilitateyourdesigndecisionsonyourportaldeployments.

Javalanguageandimplementationstandardscanalsohelpcontrolcomplexitysothatconsistentlevelsofqualitycanbeattainedinyourdevelopmentactivities.Thisinturncanleadtoincreasedpartneradoptionandportletmaintenance.Last,theadoptionofdesignpatternsshouldbeappliedsothatbestpracticesarepropagatedinyourportaldeploymentanddevelopmentoperationscanbehastened.

MuchhasbeenwrittenduringthelastfewyearsaboutdesignpatternsandtheiruseinJavadevelopment,soratherthangointogreatelaborationoftheiruse,wefeltthatitwouldbemorebeneficialtoprovidehigh-levelconceptsofpatternsthatmightbeusedinyourportaldeploymentsandtoencourageyoutoexplorethemfromtheonlineJavaworldnewsletterandfromtheCoreJ2EEPatternsbook[ALUR].

PlanningforPortalDeployment

UsingJavaStandards

Formanymission-criticaldevelopmentportalefforts,decisionsneedtobemadeaboutexpensivesoftwareprocurementstosatisfyyourdevelopmentneeds.Inordertoprotectthisinvestment,itiswisetoconsiderstandardswhenyoumakeyourpurchasingdecisionbecausethereisnothingworsethandumpingalotofmoneyintoaparticularframeworkonlytolearnafteryouhaveobtaineditthatitisaclosed,proprietarysystemthatdoesnotworkwellwithothersystems.Toguaranteethatthisdoesnothappentoyou,youshouldbecomefamiliarwithsoftwarestandardsandotherapplicationframeworks’useofthem.Regrettably,systemsthatdorelyheavilyonproprietaryextensionsoftenforceyourprojecttohireexpensiveexpertisetohelpyoudeployyourprogramwiththeirframework.

Figure7.21illustratessomeoftheJavastandardsthatcouldbeconsideredforportaldevelopment.Itisimportanttorememberthattheseneedtobeestablishedpriortoprocuringaportalframeworkorintegratingexistingapplicationsintoahomegrownportalapplication.AlwaysbecognizantofthelatestversionsofthestandardslistedinFigure7.21,andtheeffectsthatnewerversionsofthosestandardsmighthaveonyourdesigndecisions.

Figure7.21

Figure7.22illustratessomeoftheportalstandardsthatshouldbeconsideredbeforebuildingyourportalapplication.

Onmanyportalimplementations,abusinesscaseforadherencetolanguagestandardsthatrelatetoindividualportletsneedstobemadesothatproprietaryextensionsarenotadoptedbyaprogramthatdisallowscodereuseandpromotesvendorlock-in.Beingexposedtoproprietarydataformats,oneinevitablygetsincreasinglylockedintothesolutionsofaparticularvendor,whichinturnlimitstheoptionsforapplicationsoftware.Thisultimatelyenablesvendorstodictateenhancementpricesandintroducesunnecessaryriskstoyoursystem

Figure7.22

Model-View-Controller(MVC)Pattern

IntheportalarchitectureshowninFigure7.23,theMVCPatterniswheretheservletcontrollerrendersdifferentviewstotheportalfaç

adefromadisparatesetofdatasources.

Themodelisthepiecethathasnospecificknowledgeofitscontrollersoritsviews.Theportalsystemmaintainsrelationsbetweenthedifferentmodelsandviewsandbroadcastscontenttotheviewswhenthemodelchangesstate.Theviewistypicallythepiecethatmanagesthevisualizationsofthemodeldata.Thecontrolleristhepiecethatmanagesuserinteractionwiththemodeldata.

TheMVCPatternisusedwithmanyframeworksbecauseofitsabilitytohandlecontentdeliverycomplexitiesthatareprominentinmanyenterprisesystems.Jakarta’sStrutsandBEA’sWebFlowaretwonotableimplementationsthatusethisintheirframeworks.

TemplateMethodPattern

AgoodpracticewhendevelopingJavaBeansinyourportalapplicationsistousetheTemplateMethodPattern[GoF]toenforceacommondesignacrosstheportalback-end.TheTemplateMethodPatterncanbeusedsothatmodificationstoyourgetand/orsetmethodswillnotaffectyourpresentationview.

IntheportaldisplayinFigure7.23,theJavaBeanapplicationsontheback-endimplementtheTemplateMethodPatterntomanagethelogicintheaccessor(get/set)methods.

MementoPattern

InthesampleportalvisualizationshowninFigure7.23,theviewlabeled#4indicatesthataformwillberenderedtotheuserdisplay.Inmanycases,theformwilluseJavaScripttoperformvalidationtestingsothatactivitieswillbeperformedontheclientsideinordertoalleviateunnecessaryoperationsontheserver.ThisisagoodpracticeforsomeWebappl

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 解决方案 > 营销活动策划

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1