Copyright © 2005 Finetix LLC All Rights Reserved 0 SpringFramework.Net Developer Session Chris Donnan The Peer Frameworks Series -.Net and Java.

Slides:



Advertisements
Similar presentations
Copyright © 2005 Finetix LLC All Rights Reserved 0 Spring Framework Developer Session Chris Donnan & Solomon Duskis The Peer Frameworks Series -.Net and.
Advertisements

Apache Struts Technology
Spring, Hibernate and Web Services 13 th September 2014.
Edoclite and Managing Client Engagements What is Edoclite? How is it used at IU? Development Process?
Fabian Vilers Hands on ASP.NET MVC.
Introduction to Spring Matt Wheeler. Notes This is a training NOT a presentation Please ask questions Prerequisites – Introduction to Java Stack – Basic.
Computer Monitoring System for EE Faculty By Yaroslav Ross And Denis Zakrevsky Supervisor: Viktor Kulikov.
Spring.Net Steinar Dragsnes steinar.dragsnes at viz.no.
AMS304: Introduction to the ASP.NET Model View Controller (MVC) Framework Scott Hanselman Eilon Lipton Microsoft Microsoft
The Spring Framework: A brief introduction to Inversion of Control James Brundege
The Spring Framework A quick overview. The Spring Framework 1. Spring principles: IoC 2. Spring principles: AOP 3. A handful of services 4. A MVC framework.
UNIT-V The MVC architecture and Struts Framework.
Ori Calvo, 2010 “If people want to have maximum reach across *all* devices then HTML will provide the broadest reach” Scott Guthrie,
Introduction to the Spring Framework By: Nigusse A. Duguma Kansas State university Department of Computer Science Nov 20, 2007.
Copyright 2006, Codeguild, Inc Spring Framework Fundamentals March, 2006 Larry Hamel Codeguild, Inc.
Spring Overview, Application demo -Midhila Paineni 09/23/2011 Spring Overview, Application demo9/8/20151.
ExtWebDriver Open Source Project Daniel Koo Latha Nagaraj Bryan Robbins 04/23/2014.
NOTE: To change the image on this slide, select the picture and delete it. Then click the Pictures icon in the placeholder to insert your own image. WEB.
Agile Web Development with the Castle Project 15/05/2008, Skills Matter Gojko Adzic
Introduction to the Spring Framework Rajesh. Spring Mission Statement J2EE should be easier to use OO design is more important than any implementation.
Copyright © 2005 Finetix LLC All Rights Reserved 0 SpringFramework.Java Developer Session Solomon Duskis The Peer Frameworks Series -.Net and Java.
Designing For Testability. Incorporate design features that facilitate testing Include features to: –Support test automation at all levels (unit, integration,
Todd Snyder Development Team Lead Infragistics Experience Design Group.
Aspect Oriented Programming (AOP) in.NET Brent Krueger 12/20/13.
OpusCollege and the use of Spring and iBatis
Copyright 2007 SpringSource. Copying, publishing or distributing without express written permission is prohibited. Understanding the Bean Lifecycle An.
WEB 304 An Overview of ASP.NET and Windows Workflow Foundation Kashif Alam Program Manager Developer Division Microsoft Corporation.
Dependency Injection What, Why and How Peter Provost Slides will be here ^^^ Brad Wilson
ASP.NET.. ASP.NET Environment ASP.NET is Microsoft's programming framework that enables the development of Web applications and services. It is an easy.
Opus College - overview. OpusCollege - background First project: ICT Capacity Building Mozambican Higher Education Institutions Partners: RUG Groningen,
EBay Case Study Jeremy Kraybill & Jeremy Thomerson.
Introduction to Spring Matt Wheeler. Notes This is a training NOT a presentation Please ask questions Prerequisites – Introduction to Java Stack – Basic.
Presentation. Recap A multi layer architecture powered by Spring Framework, ExtJS, Spring Security and Hibernate. Taken advantage of Spring’s multi layer.
Inversion Of Control & Dependency Injection Break Apart The Dependencies Oren Eini Senior Developer We! Consulting Group
Object Oriented Analysis and Design 1 Chapter 7 Database Design  UML Specification for Data Modeling  The Relational Data Model and Object Model  Persistence.
Creative Commons Attribution- NonCommercial-ShareAlike 2.5 License Sakai Programmer's Café Sakai Montreal CRIM Workshop Introduction to Spring Framework,
Introduction to Web Dimitar Nenchev Ivan Nakov
Castle Manoj Waikar Pune, India.. Introduction Castle aspires to simplify the development of enterprise and web applications. It offers a set of tools.
Spring 101 Struts University Series. About Ted Husted Lead author, Struts in Action Co-Author, JUnit in Action Member, Apache Software Foundation Member,
Case Study ProsperaSoft’s global sourcing model gives the maximum benefit to customers in terms of cost savings, improved quality, access to highly talented.
Tuscany: a SOA framework Jeffrey Guo Accelrys, Inc.
Oct * Brad Tutterow. VS 2008.NET 3.5LINQ Entity Framework  The ADO.NET Entity Framework is part of Microsoft’s next generation of.NET technologies.
.  A multi layer architecture powered by Spring Framework, ExtJS, Spring Security and Hibernate.  Taken advantage of Spring’s multi layer injection.
Copyright © 2006 Pilothouse Consulting Inc. All rights reserved. Search Overview Search Features: WSS and Office Search Architecture Content Sources and.
EMEA Beat Schwegler Architect Microsoft EMEA HQ Ingo Rammer Principal Consultant thinktecture
Copyright 2007 SpringSource. Copying, publishing or distributing without express written permission is prohibited. Spring MVC Essentials Getting started.
Spring and DWR Frameworks for Rich Web Enterprise Application Thomas Wiradikusuma Presentation to the 20 th.
Presentation.
Copyright 2007 SpringSource. Copying, publishing or distributing without express written permission is prohibited. Introduction to Data Access with Spring.
Kansas City Java User’s Group Jason W. Bedell July 12, 2006
Text 16 de mayo de 2009 Spring Framework Part III. Portable Service Abstractions Buenos Aires, June 2009.
Copyright 2007 SpringSource. Copying, publishing or distributing without express written permission is prohibited. Overview of the Spring Framework Introducing.
Singleton Academy, Pune. Course syllabus Singleton Academy Pune – Course Syllabus1.
.  A reference model developed for an important use case (Air Job) including UI widgets, controllers, services and DAOs.  After full requirement analysis.
Text 16 de mayo de 2009 Spring Framework Part III. Portable Service Abstractions and Spring MVC Buenos Aires, June 2009.
Introduction to ASP.NET development. Background ASP released in 1996 ASP supported for a minimum 10 years from Windows 8 release ASP.Net 1.0 released.
Understanding Dependency Injection… and those pesky containers Miguel A. Castro Architect -
Enterprise Library 3.0 Memi Lavi Solution Architect Microsoft Consulting Services Guy Burstein Senior Consultant Advantech – Microsoft Division.
Leveraging ColdSpring to build a robust Flex applications Chris Scott, Cynergy Systems.
Introduction to ASP.NET MVC [Name] [ Address] [Blog URL]
Training What’s Spring? The leading full-stack Java/JEE application framework.
J2EE Lecture 6: Spring – IoC and Dependency Injection
Haritha Dasari Josue Balandrano Coronel -
By Ru Shen Department of Computer Science UAlbany, 2008
Ruby on Rails by Manik Juneja
Ruby on Rails by Manik Juneja
The Model Layer What is Model?
Developing and testing enterprise Java applications
Leveraging ColdSpring To Make Better Applications
MS Confidential : SharePoint 2010 Developer Workshop (Beta1)
Presentation transcript:

Copyright © 2005 Finetix LLC All Rights Reserved 0 SpringFramework.Net Developer Session Chris Donnan The Peer Frameworks Series -.Net and Java

Copyright © 2005 Finetix LLC All Rights Reserved 1 SpringFramework.net 50,000 Ft View Core AOP ServicesData Access Web DesktopWindows Services 3 rd Party Integration

Copyright © 2005 Finetix LLC All Rights Reserved 2 Application Context “One Singleton to rule them all” The IApplicationContext is the ‘normal’ top level entry point to use SpringFramework.net Inside you will find (along with other stuff) implementation of: IObjectFactory IResourceLocator These are the interfaces that are most used in day to day programming With Spring.

Copyright © 2005 Finetix LLC All Rights Reserved 3 Spring ObjectFactory  The center of it all… Since the Application Context is an IObjectFactory – you can use it To act as a ‘dynamic factory’ for your objects. You simply ask the factory for your object – and you use it as you normally Would use any “new’d” object. The real beauty is that Spring manages assembling that object for you – Giving it whatever dependencies it needs.

Copyright © 2005 Finetix LLC All Rights Reserved 4 Spring Resource Abstractions You can also use the IApplicationContext’s IResourceLocator interface: This allows you to get your resources from wherever they may be. This could Be at a URL, a File, an Embedded Resource, etc.

Copyright © 2005 Finetix LLC All Rights Reserved 5 Spring.net Demo  DEMO. –Building a complex business object with many dependencies –Prototypes and singletons –Populating collections

Copyright © 2005 Finetix LLC All Rights Reserved 6 Aspect Oriented Programming  Cross Cutting functionality –Logging –Transactions –Security –Other code that tend to repeat across an application

Copyright © 2005 Finetix LLC All Rights Reserved 7 AOP Basic code – nothing special

Copyright © 2005 Finetix LLC All Rights Reserved 8 AOP

9 AOP Code to invoke programmatically Output from execution

Copyright © 2005 Finetix LLC All Rights Reserved 10 AOP XML Conifguration Same as programmatic usage – XML Configuration

Copyright © 2005 Finetix LLC All Rights Reserved 11 AOP

Copyright © 2005 Finetix LLC All Rights Reserved 12 Spring Web  Bidirectional data binding –Via attributes  Master Pages in.Net 1x  Dependency Injection for ASP.NET pages/ web services  Result Mapping –MVC Framework for ASP.Net

Copyright © 2005 Finetix LLC All Rights Reserved 13 Data Binding public class UserRegistration : Spring.Web.UI.Page { [Binding("Text", "UserInfo. ")] protected TextBox ; [Binding("Text", "UserInfo.Address.PostalCode")] protected TextBox postalCode; ……. } *Notice it uses Expression synatax

Copyright © 2005 Finetix LLC All Rights Reserved 14 Result Mapping Used to externalize the mapping of action results to target pages:

Copyright © 2005 Finetix LLC All Rights Reserved 15 Spring Data Access and Transactions  ADO.Net  Hibernate  IBatis.net  Basic patterns and utility classes/ base classes to speed up creating DAO and templated data access classes.  Transaction support  The goal is to reduce code needed to get rolling!

Copyright © 2005 Finetix LLC All Rights Reserved 16 Hibernate Code Examples public class NHTestObjectDao : HibernateDaoSupport, ITestObjectDao { [Transaction()] public void Create(TestObject to) { HibernateTemplate.Save(to); }

Copyright © 2005 Finetix LLC All Rights Reserved 17 Hibernate Config Example <object id="DbProvider" type="Spring.Data.Support.SqlProvider, Spring.Data"> <property name="ConnectionString" value="Data Source=(local);Database=Spring;User ID=springqa;Password=springqa;Trusted_Connection=False"/> <object id="SessionFactory" type="Spring.NHibernate.LocalSessionFactoryObject, Spring.NHibernate"> Spring.NHibernate.Integration.Tests …

Copyright © 2005 Finetix LLC All Rights Reserved 18 Spring Expressions Evaluation of text expressions against live objects. Sort of like XPath for objects. Simple Example: Inventor tesla = new Inventor("Nikola Tesla", new DateTime(1856, 7, 9), "Serbian"); tesla.PlaceOfBirth.City = "Smiljan"; string evaluatedName = (string) ExpressionEvaluator.GetValue(tesla, "Name"); string evaluatedCity = (string) ExpressionEvaluator.GetValue(tesla, "PlaceOfBirth.City"));

Copyright © 2005 Finetix LLC All Rights Reserved 19 Expressions Continued This can get more complex. You can evaluate objects sub parts, sub parts, etc. Inventor pupin = (Inventor) ExpressionEvaluator.GetValue(ieee, "Officers['president']"; string city = (string) ExpressionEvaluator.GetValue(ieee, "Officers['president'].PlaceOfBirth.City"); ExpressionEvaluator.SetValue(ieee, "Officers['advisors'][0].PlaceOfBirth.Country", "Croatia"); In the latest Spring.net release- there is support of literals, logic, properties, indexers, arrays, types, and lots more

Copyright © 2005 Finetix LLC All Rights Reserved 20 SpringFramework.net DAF  Desktop Application Framework –Pub/ Sub like events –UI Application Container –Injection of dependencies into Controls/ Forms –Model/ View/ Controller | Presenter infrastructure –UI Services Model (ways to GET UI services in a consistent way) Toolbars Docking Managers Status Bars - etc –Databind binding framework Grid Binding Expression based simple binding Object Views (alternative to attributes) Expression based validation

Copyright © 2005 Finetix LLC All Rights Reserved 21 The Peer Frameworks Series -.Net and Java  1) Spring Framework Developer Session - SpringFramework.net, SpringFramework.org 2) Test Drive Development Developer Session - NUnit, JUnit; Rhino Mocks in.net and Easy Mock in Java 3) Db4o Developer Session - Open Source Object Database in.net and Java 4) ORM Developer Session - Hibernate, NHibernate / IBatis

Copyright © 2005 Finetix LLC All Rights Reserved 22 Ruby does IoC Concrete Implementations