售 价:¥
温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印
为你推荐
Learning Modular Java Programming
Table of Contents
Learning Modular Java Programming
Credits
About the Author
About the Reviewer
www.PacktPub.com
eBooks, discount offers, and more
Why subscribe?
Instant updates on new Packt books
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Downloading the example code
Errata
Piracy
Questions
1. Introducing Modular Programming
Software – the perspective
Modules
What is behind and in a module?
The practical aspect
The gang – modular programming
The world of modules
Tiers and layers in an enterprise application
One-tier applications
Two-tier applications
Three-tier applications
N-tier applications
Java Enterprise architecture
Sharing the work
Coordinate with the team
Versioning tools
Centralized versioning
CVS
Apache Subversion
The architecture of SVN
The repository
The client program
Distributed versioning
GitHub
Summary
2. Saying Hello to Java EE
The enterprise as an application
The Java EE platform
Features of the Java EE platform
The world of dotcoms
Servlet – the dynamicity
MVC I architecture
MVC II architecture
The practical aspect
What is a framework?
Advantages of frameworks
Spring MVC
The components
The front controller
Spring MVC controller
ModelAndView
ViewResolver
The configuration file
Summary
3. Implementing the Presentation Layer
Presentation
Data binding
Case 1 – Reading request parameters for searching
Case 2 – Reading multiple form fields
Form backing object
Pre-population of forms
Form validation
Developing customized validators using Spring validators
Annotation-based validations
Summary
4. Talking to the Database
Persistence
Using object serialization
Disadvantages of using object serialization
Storing data in XML
Disadvantages of storing data in XML
Saving the data in a relational database
Advantages of saving data in a relational database
Interaction of Java with relational databases
Types of JDBC drivers
JDBC-ODBC bridge driver
Advantages of the JDBC-ODBC bridge driver
Disadvantages of the JDBC-ODBC bridge driver
JDBC Native API Driver/Partly Java Driver
Advantages of the JDBC Native API Driver
Disadvantages of the JDBC Native API Driver
JDBC Net Protocol Driver
Advantages of the JDBC Net Protocol Driver
Disadvantages of the JDBC Net Protocol Driver
All Java drivers
Advantage of Java drivers
Disadvantages of the Java Driver
Spring-JDBC integration
Configuring DataSource in Spring JDBC
Getting data sources by looking up using JNDI
Getting data sources that pool connections configured on a server
Getting data sources from the JDBC driver
Types of integration of JDBC
Integrating the DataSource to get a connection reference
Integrating the JDBC template
Integrating JDBC DAO support
Problems with JDBC
Introduction to ORM
Advantages of using ORM
Introduction to Hibernate
Hibernate architecture
Spring Hibernate integration
Introduction to unit testing
Unit testing using JUnit
Steps for writing a TestCase using annotation
Summary
5. Developing the Business Layer
Business logic
Domain knowledge
Rules, formulas, and conditions
Case studies
Developing the business layer
Transaction management
JDBC and transaction management
Spring and transaction management
Programmatic transaction
Declarative transaction
Managing declarative transaction in Spring
Step 1
Step 2
Step 3
Declarative transaction management
Programmatic transaction management
Summary
6. Testing Your Application
Software testing
The waterfall model
The spiral model
The V model
Verification phases
Validation phases
Mock testing
Spring testing framework
Case1 – Inserting contact with correct values as per validation rules
Case2 – Inserting a contact by violating validation rules for contacts
Why integration testing?
Mockito testing
Arquillian
Summary
7. Securing the Application
Make it safe, make it secure
Spring security framework
Secure web request
Way 1 – Spring Security for URL using servlet filters
Case 1 – Basic authentication
Case 2 – Login form authentication
Case 3 – Authentication against database
Case 4 – Remember me
Case 5 – Logout
Way 2 – Spring Security using AOP
@Secured
@RolesAllowed
SpEL-enabled security annotations for securing the methods
Spring Security using pointcut
Way 3 – Custom security
Summary
8. Versioning and Deploying
Versioning
Collabnet server
Visual SVN server
Adding SVN as a plugin to Eclipse
Adding files in the project and committing them to the repository
Importing the project in the workspace
Updating and tracking the project for latest changes in the repository
Project deployment
Copying a WAR file into Tomcat without Tomcat manager
Copying a WAR file into Tomcat with Tomcat manager
Summary
Index
买过这本书的人还买过
读了这本书的人还在读
同类图书排行榜