
Spring Python - Reference Documentation Version 1.1.1.BUILD-20101109171232 Copyright © 2006-2009 Greg Turnquist, Dariusz Suchojad Copies of this document may be made for your own use and for distribution to others, provided that you do not charge any fee for such copies and further provided that each copy contains this Copyright Notice, whether distributed in print or electronically. Table of Contents Preface................................................................................................................................................ 1.Overview........................................................................................................................................ 1.1.KeyFeatures.........................................................................................................................1 1.2.WhatSpringPythonisNOT .................................................................................................. 2 1.3.Support.................................................................................................................................2 1.3.1.ForumsandEmail ......................................................................................................2 1.3.2.IRC ...........................................................................................................................2 1.4.Downloads/SourceCode ......................................................................................................2 1.5.Licensing..............................................................................................................................3 1.6.SpringPython'steam .............................................................................................................3 1.6.1. How to become a team member ................................................................................... 3 1.7.DeprecatedCode ...................................................................................................................4 2.TheIoCcontainer .......................................................................................................................... 2.1.Externaldependencies ...........................................................................................................6 2.2.Container..............................................................................................................................6 2.2.1.ObjectContainervs.ApplicationContext ......................................................................7 2.2.2. Scope of Objects / Lazy Initialization ........................................................................... 7 2.3.Configuration........................................................................................................................8 2.3.1. XMLConfig - Spring Python's native XML format ....................................................... 9 2.3.2. YamlConfig - Spring Python's YAML format .............................................................. 16 2.3.3. PythonConfig and @Object - decorator-driven configuration ........................................ 23 2.3.4. PyContainerConfig - Spring Python's original XML format ........................................... 25 2.3.5.SpringJavaConfig.......................................................................................................26 2.3.6.MixingConfigurationModes ......................................................................................27 2.4.ObjectFactories ....................................................................................................................28 2.5.TestableCode .......................................................................................................................28 2.6. Querying and modifying the ApplicationContext in runtime ..................................................... 29 3.AspectOrientedProgramming ...................................................................................................... 3.1.Externaldependencies ...........................................................................................................33 3.2.Interceptors...........................................................................................................................33 3.3.ProxyFactoryObjects ...........................................................................................................35 3.4.Pointcuts...............................................................................................................................36 3.5.InterceptorChain ..................................................................................................................36 3.6.CodingAOPwithPurePython ............................................................................................... 36 4.DataAccess .................................................................................................................................... 4.1.DatabaseTemplate.................................................................................................................39 4.1.1.Externaldependencies ................................................................................................39 4.1.2.TraditionalDatabaseQuery .........................................................................................39 4.1.3.DatabaseTemplate .....................................................................................................40 4.1.4. Mapping rows into objects using convention over configuration .................................... 40 4.1.5.Mappingrowsintodictionaries ...................................................................................41 4.1.6.WhatisaConnectionFactory? .................................................................................... 41 4.1.7. Creating/altering tables, databases, and other DDL ....................................................... 41 4.1.8.SQLInjectionAttacks ................................................................................................41 4.1.9. Have you used Spring Framework's JdbcTemplate? ...................................................... 42 4.1.10.NotesonusingSQLServerConnectionFactory ............................................................42 5.TransactionManagement .............................................................................................................. 5.1.Externaldependencies ...........................................................................................................44 Spring Python ii Spring Python - Reference Documentation 5.2.Solutionsrequiringtransactions..............................................................................................44 5.3.TransactionTemplate .............................................................................................................45 5.4.@transactional ......................................................................................................................46 5.4.1.@transactional(["PROPAGATION_REQUIRED"])... ..................................................47 6.Security.......................................................................................................................................... 6.1.Externaldependencies ...........................................................................................................49 6.2.SharedObjects ......................................................................................................................49 6.3.Authentication ......................................................................................................................49 6.3.1.AuthenticationProviders..............................................................................................49 6.3.2.AuthenticationManager...............................................................................................53 6.4.Authorization........................................................................................................................54 7.Remoting........................................................................................................................................ 7.1.Externaldependencies ...........................................................................................................57 7.2. Remoting with PYRO (Python Remote Objects) ..................................................................... 57 7.2.1. Decoupling a simple service, to setup for remoting ....................................................... 57 7.2.2. Exporting a Spring Service Using Inversion Of Control ................................................ 58 7.2.3. Do I have to use XML? ............................................................................................... 59 7.2.4. Splitting up the client and the server ............................................................................ 60 7.3.RemotingwithHessian ..........................................................................................................62 7.4.High-Availability/ClusteringSolutions ...................................................................................62 8.JMSMessaging .............................................................................................................................. 8.1.Introduction ..........................................................................................................................64 8.2.Dependencies........................................................................................................................65
Details
-
File Typepdf
-
Upload Time-
-
Content LanguagesEnglish
-
Upload UserAnonymous/Not logged-in
-
File Pages107 Page
-
File Size-