Spring
Framework Training SA
2KO will be offering a Spring Framework Java training course
in Cape Town, South Africa.
The main features of the Spring Framework can be used by any Java
application, but there are specific extensions for building web
applications on top of the Java Enterprise platform. Although the Spring
Framework does not impose any specific programming model, it has become
popular in the Java community as an alternative to, replacement for, or
even addition to the Enterprise JavaBean (EJB) model.
Spring Framework Training Prerequisites
All attendees must have at least one year of full-time Java and JSP
development experience. Prior experience with EJB and Java web services
is recommended but not required.
Software Needed on Each Student
PC
- Java SE SDK
- JBoss®, WebLogic, WebSphere, or
another suitable Java EE container
- MySQL or another database of your choice
- Java IDE of your choice
Note: If you have purchased this class, please contact
us for a detailed setup sheet.
Spring Framework Training
Objectives
- Understand the scope, purpose, and architecture
of Spring
- Use Spring's Inversion of Control to declare
application components, rather than hard-coding their states and
lifecycles
- Use Dependency Injection to further control
object relationships from outside the Java code base
- Create validators for business objects, and
associate them for application-level and unit-testing uses
- Build a Web application as a Spring
DispatcherServlet and associated application context, with declared
beans acting as controllers, command objects, and view resolvers
- Build and manage HTML forms with Spring command
objects and custom tags
- Use Spring interceptors to implement horizontal
features in the Web application
- Connect business objects to persistent stores
using Spring's DAO and ORM modules
Spring Framework Training
Outline
- Overview
- Java EE: The Good, The Bad, and the Ugly
- Enter the Framework
- Spring Modules
- Controlling Object Creation
- Web Applications
- Persistence Support
- Aspect-Oriented Programming
- Integrating Other Frameworks
- Core Techniques
- Component-Based Software
- JavaBeans, Reconsidered
- The Factory Pattern
- Inversion of Control
- XML View: Declaring Beans
- Java View: Using Beans
- Singletons and Prototypes
- Initializing Bean State
- Dependency Injection
- Complex Systems
- Assembling Object Graphs
- Dependency Injection
- Single and Multiple Relationships
- The Utility Schema
- Autowiring
- Bean Aliases
- Order of Instantiation
- Validation
- Validators
- The Errors Object
- ValidationUtils
- Error Messages and Localization
- Nested Property Paths
- The Web Module
- Servlets and JSPs: What's Missing
- The MVC Pattern
- The Front Controller Pattern
- DispatcherServlet
- A Request/Response Cycle
- The Strategy Pattern
- JavaBeans as Web Components
- Web Application Contexts
- Handler Mappings
- "Creating" a Model
- View Resolvers
- Customizing Spring MVC [4-day class only]
- HandlerMapping Options
- ViewResolver Options
- Chaining View Resolvers
- Triggering Redirects
- Controllers and Commands [4-day class
only]
- Working with Forms
- Command Objects
- The Template Method Pattern
- Command Controllers
- Data Binding
- MultiActionController
- Scope and Granularity of Command Objects
- Web Binding and Validation [4-day class
only]
- Property Editors
- Custom Property Editors
- Registrars
- Validating Form Input
- Form Controllers [4-day class only]
- Form Controllers
- AbstractFormController
- SimpleFormController
- Spring Custom Tags
- <form:form> and Friends
- <form:errors>
- Reporting Errors
- Refining the Handling Cycle [4-day class
only]
- The Intercepting Filter Pattern
- Exception Handling
- Interceptors
- The Decorator Pattern
- Context and Lifecycle
- Awareness Interfaces
- Support and Utility Classes
- "Death By XML"
- The Persistence Tier
- The DAO Pattern
- The DaoSupport Hierarchy
- The DataAccessException Hierarchy
- JDBC DAOs
- JdbcTemplate and RowMapper
- Object/Relational Mapping
- Hibernate® DAOs
- Transaction Control
- AOP vs. Annotations
- Conclusion
Duration: 5 Days - on
demand (planned for mid 2010 only)
Location: Cape Town, South Africa