2006/2007 Licence Apache 2.0 Castle.Igloo. Castle Igloo Basics Pre-require Concept Scopes PageFlow Configuration Controller View Exemple Castle.Igloo.

Slides:



Advertisements
Similar presentations
Session 6 Module 2 Calling a Web Service from an ASP.NET Web Page.
Advertisements

A Brief Introduction 2012 Spring Security. What is it? Security toolkit for Java applications Primarily intended for web applications Open Source from.
Introduction to Spring Matt Wheeler. Notes This is a training NOT a presentation Please ask questions Prerequisites – Introduction to Java Stack – Basic.
Windows Communication Foundation and Web Services.
JSP: JavaServer Pages Juan Cruz Kevin Hessels Ian Moon.
WEB1P servintro1 Introduction to servlets and JSP Dr Jim Briggs.
Struts Basics SSE USTC Qing Ding. Agenda What is and Why Struts? Struts architecture – Controller: Focus of this presentation – Model – View Struts tag.
Microsoft ASP.NET AJAX - AJAX as it has to be Presented by : Rana Vijayasimha Nalla CSCE Grad Student.
Q: According to Intel, the Pentium conforms to the IEEE standards 754 and 854 for floating point arithmetic. If you fly in aircraft designed using a Pentium,
Session-01. Layers Struts 2 Framework The struts 2 framework is used to develop MVC-based web application. Struts 1.0 was released in June The.
Session-02. Index. Jsp in Struts 2 Web.xml File in Struts 2.
Introduction to Java web programming Dr Jim Briggs JWP intro1.
1 November 21st 2009 Shaun Abram An Introduction to Spring.
Stateful Web Application Development with Spring Web Flow John Case Senior Consultant Centare Group, Ltd.
Introduction to Spring Matt Wheeler. Notes This is a training NOT a presentation Please ask questions Prerequisites – Introduction to Java Stack – Basic.
Christopher M. Pascucci Basic Structural Concepts of.NET Browser – Server Interaction.
Lecture 2 - Struts ENTERPRISE JAVA. 2 Contents  Servlet Deployment  Servlet Filters  Model View Controllers  Struts  Dependency Injection.
Sage CRM Developers Course
A Close Look Inside the SharePoint Engine Randy Williams, MVP MOSS Synergy Corporate Technologies
Reading Data in Web Pages tMyn1 Reading Data in Web Pages A very common application of PHP is to have an HTML form gather information from a website's.
Apache JMeter By Mohamed Talaat
Spring Overview, Application demo -Midhila Paineni 09/23/2011 Spring Overview, Application demo9/8/20151.
Configuration Management and Server Administration Mohan Bang Endeca Server.
Overview of Previous Lesson(s) Over View  ASP.NET Pages  Modular in nature and divided into the core sections  Page directives  Code Section  Page.
ASP.NET Web API Udaiappa Ramachandran NHDN-Nashua.NET/Cloud Computing UG Lead Blog:
Copyright © 2012 Accenture All Rights Reserved.Copyright © 2012 Accenture All Rights Reserved. Accenture, its logo, and High Performance Delivered are.
Todd Snyder Development Team Lead Infragistics Experience Design Group.
JavaServer Faces Jeff Schmitt October 5, Introduction to JSF Presents a standard framework for building presentation tiers for web applications.
Parsley Introduction Kui Huang Oct. 13, Topics Background Dependency Injection Object Lifecycle Message Bus Sample FW Extensions.
Spring core v3.x Prepared by: Nhan Le. History v3.0 Spring Expression Language Java based bean metadata v3.1 Cache Abstraction Bean Definition Profile.
CSCI 6962: Server-side Design and Programming Introduction to Java Server Faces.
WEB 304 An Overview of ASP.NET and Windows Workflow Foundation Kashif Alam Program Manager Developer Division Microsoft Corporation.
Standalone Java Application vs. Java Web Application
Chapter 5 Being a Web App. Very few servlet or JSP stands alone Many times in our application, different servlets or JSPs need to share information 
Microsoft SharePoint Server 2010 for the Microsoft ASP.NET Developer Yaroslav Pentsarskyy
Murach’s ASP.NET 4.0/VB, C1© 2006, Mike Murach & Associates, Inc.Slide 1.
Introduction to Spring Matt Wheeler. Notes This is a training NOT a presentation Please ask questions Prerequisites – Introduction to Java Stack – Basic.
COMPONENT INTERFACE By, Mr. Srinivas.. What is Component Interface? A means to access the PeopleSoft application without using the PeopleSoft pages. It.
Lecture Set 11 Creating and Using Classes Part B – Class Features – Constructors, Methods, Fields, Properties, Shared Data.
Spring Training 17/09/ Dependency Injection.
Java Web Development with NetBeans IDE -- Kai Qian Chapter 5 JavaServer Faces (JSF) Technology.
Slide 1 ASP Authentication There are basically three authentication modes Windows Passport Forms There are others through WCF You choose an authentication.
INFSO-RI Enabling Grids for E-sciencE 1 Downtime Process Author : Osman AIDEL Hélène Cordier.
Building Secure Web Applications With ASP.Net MVC.
Alternative Architectures: Inversion of Control Mike Hadlow mikehadlow.blogspot.com.
Struts 2 introduction. Struts 2 framework Struts 2 A full-featured web application framework for the Java EE platform The Java Servlet API exposes the.
Introducing Allors Applications, Tools & Platform.
Chính phủ điện tử TS. Phạm Văn Tính Khoa CNTT, ĐH Nông Lâm TP.HCM
ASP.NET Web Services.  A unit of managed code installed under IIS that can be remotely invoked using HTTP.
1 Spring Framework April, 2012 Lam Ho Lam To. © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 2 1.Spring Overview 2.Framework.
CSI 3125, Preliminaries, page 1 SERVLET. CSI 3125, Preliminaries, page 2 SERVLET A servlet is a server-side software program, written in Java code, that.
Introduction to business component technologies. Component definitions Szyperski: A software component is a unit of composition with contractually specified.
Data transfer and type conversion One of the common tasks of the web application domain was moving and converting data from string-based HTTP to the various.
Text INTRODUCTION TO ASP.NET. InterComm Campaign Guidelines CONFIDENTIAL Simply Server side language Simplified page development model Modular, well-factored,
12 Copyright © 2004, Oracle. All rights reserved. Using ADF Struts Components.
SDJ INFOSOFT PVT. LTD. 2 BROWSERBROWSER JSP JavaBean DB Req Res Application Layer Enterprise server/Data Sources.
Intro to MVC5 Bryan Soltis Bit-Wizards - Director of Technology & Research.
Enterprise Java Beans. Contents  Understanding EJBs  Practice Section.
Windows Communication Foundation and Web Services
DYNAMIC CONTENT DELIVERY
Mobility for Real Estate – Extending JDE Core Data to User Fingertips
Activities and Intents
EIN 6133 Enterprise Engineering
02 | Developing ASP.NET MVC 4 Models
Java Web Application Framework
Present by Andie Saizan, MCP
REST.
Oracle Configurator Cloud
Leveraging ColdSpring To Make Better Applications
Presentation transcript:

2006/2007 Licence Apache 2.0 Castle.Igloo

Castle Igloo Basics Pre-require Concept Scopes PageFlow Configuration Controller View Exemple Castle.Igloo

Concepts An "MVC" framework for Asp.NET Manages Flow page Manages typed user context support Injection of Controller in UI element (Page, User control, MasterPage) Transparent integration in Asp.Net Testable controller Multiple scope component (Session, request, page, application, custom, conversation [In progress]) Castle.Igloo

Pre-Require It’s only.NET 2.0 You need to install the Web Application Projects which comes back once again to default in VS 2005 Service Pack 1.Web Application Projects Castle.Igloo dll Castle.Igloo

Scopes Application Scope Page 1Page X Session Scope Page Scope Request Scope Page Conversation Scope Castle.Igloo Singleton ScopeTransient ScopeCustom Scope Scope Web context Thread Scope

Scopes Application Scope : Scopes a single component definition to the lifecycle of an ASP.NET application. Conversation Scope : Scope conversation provides fine grain control over the session scope so that "concurrent conversations" can occur. Page Scope : Scopes a single component model to the lifecycle of a aspx page. Request Scope : Scopes a single component model to the lifecycle of a single HTTP request; Session Scope : Scopes a single component model to the lifecycle of a HTTP Session. Singleton Scope : Scopes a single component model to a single object instance per Castle IoC container. Transient Scope : Scopes a single component model to any number of object instances. Thread Scope : Scopes a single component model to the lifecycle of a thread Castle.Igloo

Scope notion Component wiring (dependency injection) is performed when an IOC managed component are instantiated, which means that, a component in a wide scope (such as singleton) cannot have a reference to a component in a narrow scope (the request/session..., for examples). To fixes this problem you must always created and injected a proxy component for every reference of a narrow scoped component. This proxy component exposes the same public interface as the scoped component but it will be able to determine the real, target object from the relevant (request/session...) scope and delegate method calls onto this real object. This proxy will be created by Igloo. Requirement for proxy component in a scope are made when configuring component (next slide) All scope implement the IScope interface and you can implement your own scope. Such custom scope are referenced as others components in the configuration file. Castle.Igloo

Component scoping Via XML configuration (scope attribute on component tag) Via.NET Attribute on component class Castle.Igloo

View UI element must derive from Castle.Igloo.UI.Web.Page, Castle.Igloo.UI.Web. MasterPage, Castle.Igloo.UI.Web. UserControl Support Controller injection Support context user injection Castle.Igloo

Controller Must derive from base class : Castle.Igloo.Controllers.BaseController Are Request scope by default (via heritage) Method on controller must be virtual to allow interception. Castle.Igloo

State user management Provides safe, intuitive user state management [Inject(ScopeName)] attribute specifies that a state value should be Castle.Igloo

Inject Attribute Name : The scope variable name. Defaults to the name of the annotated field or getter method.(Not required) Scope :Explicitly specify the scope to search, instead of searching all scopes.(Not required) Create : Specifies that a object should be instantiated if the scope variable is null. Castle.Igloo

Navigation The NavigationState contains data for processing navigation. NavigationState can be accessed on Controller SkipNavigation attribute specifies that a controller method must not declench a navigation to another view. Castle.Igloo

Page Flow Action is alimented from the ‘commandName’ attribute of UI control (Button..) or can been via code Castle.Igloo

Page Flow Navigation Castle.Igloo Navigation flow are automatically done after a call of a controller’s method via an interceptor and so each controller method must be declare as Virtual.

Exemple : IOC Configuration Castle.Igloo

Exemple : Login Page Login Page Castle.Igloo IOC injection

Example : Login Controller Castle.Igloo IOC injection User state management Navigation managemen t + Flash message

Exemple : 2 nd page Castle.Igloo User state injection IOC injection

Example : Patient Controller Castle.Igloo IOC injection User state injection User state management Navigation management