关闭

关闭

封号提示

内容

首页 Spring in Action 2.pdf

Spring in Action 2.pdf

Spring in Action 2.pdf

上传者: bosshida 2012-03-04 评分 5 1 330 45 1501 暂无简介 简介 举报

简介:本文档为《Spring in Action 2pdf》,可适用于IT/计算机领域,主题内容包含PraisefortheFirstEdition“Thisisoneofthoserarebooksthatconnectatutorialforu符等。

PraisefortheFirstEdition“ThisisoneofthoserarebooksthatconnectatutorialforusingacertainsoftwareproductwithaplethoraofideasongoodsoftwaredesignanddesignpatternsIenjoyedthisbookverymuch”ComputingReviews“Coversalorganized“easyto“WhileSpSpringmuentertainin“Trulyagenterpriseservicesthaaccessprogme,thereisandeditedpaidatten“AcompletmeanitisitexplmakesthemimplementabouttheframeworkSpringinhlthebaseswithextensiveexamplesandexplicitinstructionsasuperblyandfluentlywritteninstructionandreferencemanual”InternetBookwatchreadandhasjustenoughhumormixedin”BooksOnLinering’sreferencedocumentationishighquality,thisbookmakeslearningchmoreenjoyableThebookinjectsafairamountofhumorthatkeepsitgIfyouwanttolearnSpring,youcan’tgowrongwiththisoffering”BillSiggelkow’sWeblogAuthorofJakartaStrutsCookbookreatresourceThebookclearlydefinesthepowerthatSpringbringstoprogrammersandhowSpringabstractsawaymanyofthetougherJEEtmostseriousapplicationsuseThebookhasbeenthrougharigorousearlyram,sothankfullygrammarandcodeerrorsareallbutnonexistentTonothingworsethantryingtolearnanewtechnologyfromapoorlywrittentechnicalbookThankfully,Craig,Ryan,andtheManningteamhavetiontodetailandproducedabookthatIhighlyrecommend”JavaLobbyorgereferencemanualthatcoversnearlyeveryaspectofSpringThisdoesn’tcomplicated:everyexplanationisclearandtherearealotofcodeexamplesainsclearlywhat“InversionofControl”andAOPmeanandhowSpringpossiblehowyoucanwriteservicesandDaos,andhowyoucansimplytransactionmanagementandserviceremotingthethirdparttalksWeblayercoveringSpringMVCaswellasothertechnologiesandsOverallanexcellentresourceforanydeveloperinterestedinusingisproject”JavaUserGroupMilanoSpringinActionSecondEditionCRAIGWALLSwithRyanBreidenbachMANNINGGreenwich(wlong)ForonlineinformationandorderingofthisandotherManningbooks,pleasevisitwwwmanningcomThepublisheroffersdiscountsonthisbookwhenorderedinquantityFormoreinformation,pleasecontact:SpecialSalesDepartmentManningPublicationsCoSoundViewCourtBFax:()Greenwick,CTEmail:ordersmanningcombyManninNopartofthispuanyformorbymepermissionoftheManyofthedesigclaimedastrademPublicationswasaorallcapsRecognizingtheithebookswepubManningPuSoundViewGreenwich,ISBNPrintedintheUngPublicationsCoAllrightsreservedblicationmaybereproduced,storedinaretrievalsystem,ortransmitted,inanselectronic,mechanical,photocopying,orotherwise,withoutpriorwrittenpublishernationsusedbymanufacturersandsellerstodistinguishtheirproductsarearksWherethosedesignationsappearinthebook,andManningwareofatrademarkclaim,thedesignationshavebeenprintedininitialcapsmportanceofpreservingwhathasbeenwritten,itisManning’spolicytohavelishprintedonacidfreepaper,andweexertourbesteffortstothatendblicationsCoCopyeditor:LizWelchCourtBTypesetter:DottieMarsicoCTCoverdesigner:LeslieHaimesitedStatesofAmerica–MAL–FormywifeRaymieandmydaughtersMaisyandMadisonIamendlesslymystifiedastohowImerittheloveoftheworld’sthreemostbeautifulgirlsPARTCOPARTENbriefcontentsRESPRINGSpringingintoactionBasicbeanwiringAdvancedbeanwiringAdvisingbeansTERPRISESPRINGHittingthedatabaseManagingtransactionsSecuringSpringSpringandPOJObasedremoteservicesBuildingcontractfirstwebservicesinSpringSpringmessagingSpringandEnterpriseJavaBeansviiAccessingenterpriseservicesviiiBRIEFCONTENTSPARTCLIENTSIDESPRINGHandlingwebrequestsRenderingwebviewsapapUsingSpringWebFlowIntegratingwithotherwebframeworkspendixASettingupSpringpendixBTestingwith(andwithout)SpringPARTcontentsprefacexixprefacetothefirsteditionxxiiacknowledgmentsxxvaboutthisbookxxviiaboutthetitlexxxiiiaboutthecoverillustrationxxxivCORESPRINGSpringingintoactionWhatisSpringSpringmodulesASpringjumpstartUnderstandingdependencyinjectionInjectingdependenciesDependencyinjectioninactionDependencyinjectioninenterpriseapplicationsApplyingaspectorientedprogrammingixIntroducingAOPAOPinactionSummaryxCONTENTSBasicbeanwiringContainingyourbeansIntroducingtheBeanFactoryWorkingwithanapplicationcontextAbean’slifeCreatingbeansDeclaringasimplebeanInjectingthroughconstructorsInjectingintobeanpropertiesInjectingsimplevaluesReferencingotherbeansWiringcollectionsWiringnothing()AutowiringThefourtypesofautowiringMixingautowithexplicitwiringToautowireornottoautowireControllingbeancreationBeanscopingCreatingbeansfromfactorymethodsInitializinganddestroyingbeansSummaryAdvancedbeanwiringDeclaringparentandchildbeansAbstractingabasebeantypeAbstractingcommonpropertiesApplyingmethodinjectionBasicmethodreplacementUsinggetterinjectionInjectingnonSpringbeansRegisteringcustompropertyeditorsWorkingwithSpring’sspecialbeansPostprocessingbeansPostprocessingthebeanfactoryExternalizingconfigurationpropertiesResolvingtextmessagesDecouplingwithapplicationeventsMakingbeansawareScriptingbeansPuttingthelimeinthecoconutScriptingabeanInjectingpropertiesofscriptedbeansRefreshingscriptedbeansWritingscriptedbeansinlineSummaryCONTENTSxiAdvisingbeansIntroducingAOPDefiningAOPterminologySpring’sAOPsupportPARTCreatingclassicSpringaspectsCreatingadviceDefiningpointcutsandadvisorsUsingProxyFactoryBeanAutoproxyingCreatingautoproxiesforSpringaspectsAutoproxyingAspectJaspectsDeclaringpurePOJOaspectsInjectingAspectJaspectsSummaryENTERPRISESPRINGHittingthedatabaseLearningSpring’sdataaccessphilosophyGettingtoknowSpring’sdataaccessexceptionhierarchyTemplatingdataaccessUsingDAOsupportclassesConfiguringadatasourceUsingJNDIdatasourcesUsingapooleddatasourceJDBCdriverbaseddatasourceUsingJDBCwithSpringTacklingrunawayJDBCcodeWorkingwithJDBCtemplatesUsingSpring’sDAOsupportclassesforJDBCIntegratingHibernatewithSpringChoosingaversionofHibernateUsingHibernatetemplatesBuildingHibernatebackedDAOsUsingHibernatecontextualsessionsSpringandtheJavaPersistenceAPIUsingJPAtemplatesConfiguringanentitymanagerfactoryBuildingaJPAbackedDAOxiiCONTENTSSpringandiBATISConfiguringaniBATISclienttemplateBuildinganiBATISbackedDAOCachingConfiguringacachingsolutionProxyingbeansforcachingAnnotationdrivencachingSummaryManagingtransactionsUnderstandingtransactionsExplainingtransactionsinonlyfourwordsUnderstandingSpring’stransactionmanagementsupportChoosingatransactionmanagerJDBCtransactionsHibernatetransactionsJavaPersistenceAPItransactionsJavaDataObjectstransactionsJavaTransactionAPItransactionsProgrammingtransactionsinSpringDeclaringtransactionsDefiningtransactionattributesProxyingtransactionsDeclaringtransactionsinSpringDefiningannotationdriventransactionsSummarySecuringSpringIntroducingSpringSecurityAuthenticatingusersConfiguringaprovidermanagerAuthenticatingagainstadatabaseAuthenticatingagainstanLDAPrepositoryControllingaccessVotingaccessdecisionsCastinganaccessdecisionvoteHandlingvoterabstinenceCONTENTSxiiiSecuringwebapplicationsProxyingSpringSecurity’sfiltersHandlingthesecuritycontextPromptingtheusertologinHandlingsecurityexceptionsEnforcingwebsecurityEnsuringasecurechannelViewlayersecurityConditionallyrenderingcontentDisplayinguserauthenticationinformationSecuringmethodinvocationsCreatingasecurityaspectSecuringmethodsusingmetadataSummarySpringandPOJObasedremoteservicesAnoverviewofSpringremotingWorkingwithRMIWiringRMIservicesExportingRMIservicesRemotingwithHessianandBurlapAccessingHessianBurlapservicesExposingbeanfunctionalitywithHessianBurlapUsingSpring’sHttpInvokerAccessingservicesviaHTTPExposingbeansasHTTPServicesSpringandwebservicesExportingbeansaswebservicesusingXFireDeclaringwebserviceswithJSRannotationsConsumingwebservicesProxyingwebserviceswithanXFireclientSummaryBuildingcontractfirstwebservicesinSpringIntroducingSpringWSDefiningthecontract(first!)CreatingsampleXMLmessagesxivCONTENTSHandlingmessageswithserviceendpointsBuildingaJDOMbasedmessageendpointMarshalingmessagepayloadsWiringitalltogetherSpringWS:ThebigpictureMappingmessagestoendpointsWiringtheserviceendpointConfiguringamessagemarshalerHandlingendpointexceptionsServingWSDLfilesDeployingtheserviceConsumingSpringWSwebservicesWorkingwithwebservicetemplatesUsingwebservicegatewaysupportSummarySpringmessagingAbriefintroductiontoJMSArchitectingJMSAssessingthebenefitsofJMSSettingupActiveMQinSpringUsingJMSwithSpringTacklingrunawayJMScodeWorkingwithJMStemplatesConvertingmessagesUsingSpring’sgatewaysupportclassesforJMSCreatingmessagedrivenPOJOsCreatingamessagelistenerWritingpurePOJOMDPsUsingmessagebasedRPCIntroducingLingoExportingtheserviceProxyingJMSSummarySpringandEnterpriseJavaBeansWiringEJBsinSpringProxyingsessionbeans(EJBx)WiringEJBsintoSpringbeansDevelopingSpringenabledEJBs(EJBx)CONTENTSxvSpringandEJBIntroducingPitchforkGettingstartedwithPitchforkInjectingresourcesbyannotationDeclaringinterceptorsusingannotationsPARTSummaryAccessingenterpriseservicesWiringobjectsfromJNDIWorkingwithconventionalJNDIInjectingJNDIobjectsWiringJNDIobjectsinSpringSendingemailConfiguringamailsenderConstructingtheemailSchedulingtasksSchedulingwithJava’sTimerUsingtheQuartzschedulerInvokingmethodsonascheduleManagingSpringbeanswithJMXExportingSpringbeansasMBeansRemotingMBeansHandlingnotificationsSummaryCLIENTSIDESPRINGHandlingwebrequestsGettingstartedwithSpringMVCAdayinthelifeofarequestConfiguringDispatcherServletSpringMVCinanutshellMappingrequeststocontrollersUsingSimpleUrlHandlerMappingUsingControllerClassNameHandlerMappingUsingmetadatatomapcontrollersWorkingwithmultiplehandlermappingsHandlingrequestswithcontrollersProcessingcommandsProcessingformsubmissionsProcessingcomplexformswithwizardsWorkingwiththrowawaycontrollersxviCONTENTSHandlingexceptionsSummaryRenderingwebviewsResolvingviewsUsingtemplateviewsResolvingviewbeansChoosingaviewresolverUsingJSPtemplatesBindingformdataRenderingexternalizedmessagesDisplayingerrorsLayingoutpageswithTilesTileviewsCreatingTilecontrollersWorkingwithJSPalternativesUsingVelocitytemplatesWorkingwithFreeMarkerGeneratingnonHTMLoutputProducingExcelspreadsheetsGeneratingPDFdocumentsDevelopingcustomviewsSummaryUsingSpringWebFlowGettingstartedwithSpringWebFlowInstallingSpringWebFlowSpringWebFlowessentialsCreatingaflowLayingtheflowgroundworkFlowvariablesStartandendstatesGatheringcustomerinformationBuildingapizzaorderCompletingtheorderAfewfinishingtouchesAdvancedwebflowtechniquesUsingdecisionstatesExtractingsubflowsandusingsubstatesIntegratingSpringWebFlowwithotherframeworksJakartaStrutsJavaServerFacesSummaryCONTENTSxviiIntegratingwithotherwebframeworksUsingSpringwithStrutsRegisteringtheSpringpluginwithStrutsWritingSpringawareStrutsactionsDelegatingtoSpringconfiguredappendixAappendixBwebcontentwebchappenappenappenappenactionsWhataboutStrutsWorkingSpringintoWebWorkStrutsIntegratingSpringwithTapestryIntegratingSpringwithTapestryIntegratingSpringwithTapestryPuttingafaceonSpringwithJSFResolvingJSFmanagedpropertiesResolvingSpringbeansUsingSpringbeansinJSFpagesExposingtheapplicationcontextinJSFAjaxenablingapplicationsinSpringwithDWRDirectwebremotingAccessingSpringmanagedbeansDWRSummarySettingupSpringTestingwith(andwithout)SpringindexapterBuildingportletapplicationsdixCSpringXMLconfigurationreferencedixDSpringJSPtaglibraryreferencedixESpringWebFlowdefinitionreferencedixFCustomizingSpringconfigurationItwasDinMiamworldwforasinWhasurf,wemoreaOnRodJohofSprinbersofinthenHecaughtavailablRodinSpringThemadeliversionIndeedcapabilprefaceecember,IwasstandingatthesideofalargehotelmeetingroomiBeach,FloridaTheroomwasfilledwithdevelopersfromalloverthehohaddescendeduponthebeautifulsandybeachesofsouthernFloridaglepurpose:totalkaboutSpringtcanIsayItwasaroomfullofnerdsRatherthansoakinthesunandallgatheredinsidetobaskinthewarmglowofourlaptopscreenstolearnboutourbelovedframeworkfromthosewhoknowitbestthatparticularnight,wewerehangingonthewordsofSpring’screator,nson,ashepresentedtheopeningkeynotefortheconferenceHespokeg’soriginsandthesuccessesithadenjoyedThenheinvitedafewmemtheSpringteamtothepodiumtointroducenewfeaturesthatweretobeextversionwasn’tfarintohispresentationwhenRodmadeanannouncementthateveryone’sattentionWewereallexpectingthesegreatnewfeaturestobeeinSpring,thesupposednextversionofSpringMuchtooursurprise,formedusthattherewouldbenoSpringthenextversionwouldbedecisiontobumpupthemajorversionnumberofthenextreleaseisn’tghtlySuchanactionconnotesasignificantadvanceinSpringIfthenextxixofSpringwouldbe,thenwecouldexpectmajorenhancements,tenmonthslater,Springwouldbereleasedwithanabundanceofnewities,including:xxPREFACESimplifiedXMLconfigurationandtheoptiontocreatecustomconfigurationelementsGreatlysimplifiedAOPandtransactionsSupportforJavaannotationsfordeclaringaspects,transactions,andrTSNImcASoSEwTcAtoneintroduareThawork,stionalcSoXSSaDLrequiredbeanpropertiesheabilitytocreatebeansfromscriptswritteninJRuby,Groovy,orBeanhellewJDBCtemplatestosupportnamedparametersandJavafeaturesprovedJMSsupport,includingreceivingmessagesasynchronously(forreatingmessagedrivenPOJOs)newformbindingJSPtaglibraryeveralconventionoverconfigurationimprovementstoreducetheamountfXMLrequiredtoconfigureSpringupportfortheJavaPersistenceAPI(JPA)nhancedbeanscoping,includingrequestandsessionscopingofbeansforebapplicationsheabilitytoperformdependencyinjectiononobjectsthatSpringdoesn’treate(suchasdomainobjects)pointinhiskeynote,Rodsaidthatifthewealthofnewfeaturesbeingceddidn’tjustifyajumpto,thenhowwouldtheyeverbeabletojustifyleaset’snotallInadditiontotheworkbeingdoneonthecoreSpringFrameeveralinterestingSpringrelatedprojectswereunderwaytoprovideaddiapabilitiesontopofSpringAmongthem:pringWebFlow,whichisbasedonSpringMVCandenablesdevelopmentfflowbasedwebapplicationsFire,forexportingyourSpringbeansasSOAPwebservicespringWSforcreatingcontractfirstwebservicespringModules,whichprovides(amongotherthings)declarativecachingndvalidationirectWebRemoting(DWR)forAjaxenablingSpringbeansingo,whichmakesitpossibletoasynchronouslyinvokemethodsonemotebeansPREFACExxiThenitoccurredtome:ifallofthesenewadvancesinSpringdidn’tjustifyasecondeditionofSpringinAction,thenwhatwouldAsitturnedout,ManningwasthinkingthesamethingAndnow,welloverayearlater,here’sthelongawaitedupdatetoSpringinActiontlongerforthisSpringhatcoversmanyofthenewfeaturesofSpringIthastakenmealottofinishthanIhadplanned,butIhopethatitwasworththewaitMygoaleditionisthesameaswiththefirst:tosharethejoyofdevelopinginIhopethisbookwillservetoenhanceyourenjoymentofSpringSoftwarcraftwdevelopThisreativesoTheingtargnewmebemastbetteraThethatmoofeffortieswenewwaThisJavacolandscaneedsfunctioextendprefacetothefirsteditionedevelopersneedtohaveanumberoftraitsinordertopracticetheirellFirst,theymustbegoodanalyticalthinkersandproblemsolversAer’sprimaryroleistocreatesoftwarethatsolvesbusinessproblemsquiresanalyzingcustomerneedsandcomingupwithsuccessful,crelutionsyalsoneedtobecuriousDevelopments

精彩专题

职业精品

上传我的资料

热门资料

资料评价:

/ 765
所需积分:0 立即下载

意见
反馈

返回
顶部

Q