Manning spring in action 2nd edition




















By employing dependency injection and AOP, Spring encourages loosely coupled code and enables plain-old Java objects with capabilities that were previously reserved for EJBs. This book is a hands-on, example-driven exploration of the Spring Framework. Combining short code snippets and an ongoing example developed throughout the book, it shows readers how to build simple and efficient J2EE applications, how to solve persistence problems, handle asynchronous messaging, create and consume remote services, build web applications, and integrate with most popular web frameworks.

Readers will learn how to use Spring to write simpler, easier to maintain code so they can focus on what really matters-- critical business needs. Spring in Action , 2E is for Java developers who are looking for ways to build enterprise-grade applications based on simple Java objects, without resorting to more complex and invasive EJBs. Software architects will also find Spring in Action , 2E useful as they assess and apply lightweight techniques prescribed by Spring.

Today, software engineers need to know not only how to program effectively but also how to …. Distributed systems have become more fine-grained as organizations shift from code-heavy monolithic applications to smaller, self-contained …. Spring Microservices in Action teaches you how to build microservice-based applications using Java and the Spring ….

Go is rapidly becoming the preferred language for building web services. There are plenty of tutorials …. Skip to main content. Start your free trial. Spring in Action, Second Edition by. Book description Spring in Action 2E is an expanded, completely updated second edition of the best selling Spring in Action. Show and hide more. Table of contents Product information. Core Spring 1. Springing into action 1. What is Spring? A Spring jump start 1. Understanding dependency injection 1.

Injecting dependencies 1. Decoupling with interfaces Giving and taking Assigning a quest to a knight Seeing it work 1. Dependency injection in enterprise applications 1. Applying aspect-oriented programming 1. Introducing AOP 1. AOP in action Weaving the aspect 1. Summary 2. Basic bean wiring 2. Containing your beans 2. Introducing the BeanFactory 2. Working with an application context 2. Creating beans 2. Declaring a simple bean 2. Injecting through constructors Injecting object references with constructors 2.

Injecting into bean properties 2. Injecting simple values 2. Referencing other beans Injecting inner beans 2. Wiring collections Lists and arrays Sets Maps Properties 2. Wiring nothing null 2. Autowiring 2. The four types of autowiring Autowiring by name Autowiring by type Using constructor autowiring Autodetect autowiring Autowiring by default 2.

Mixing auto with explicit wiring 2. To autowire or not to autowire 2. Controlling bean creation 2. Bean scoping 2. Creating beans from factory methods 2. Initializing and destroying beans Defaulting init-method and destroy-method InitializingBean and DisposableBean 2.

Summary 3. Advanced bean wiring 3. Declaring parent and child beans 3. Abstracting a base bean type Overriding inherited properties 3.

Abstracting common properties 3. Applying method injection 3. Basic method replacement 3. Using getter injection 3. Injecting non-Spring beans 3. Registering custom property editors 3. Postprocessing the bean factory 3. Externalizing configuration properties 3. Resolving text messages 3. Decoupling with application events Publishing events Listening for events 3.

Making beans aware Knowing who you are Knowing where you live 3. Scripting beans 3. Putting the lime in the coconut 3. Injecting properties of scripted beans 3. Refreshing scripted beans 3. Writing scripted beans inline 3. Summary 4. Advising beans 4. Introducing AOP 4. Creating classic Spring aspects 4. Creating advice Before advice After returning advice After throwing advice Around advice 4.

Defining pointcuts and advisors Declaring a regular expression pointcut Combining a pointcut with an advisor Defining AspectJ pointcuts 4. Autoproxying 4. Creating autoproxies for Spring aspects 4. Autoproxying AspectJ aspects Annotating around advice 4. Declaring pure-POJO aspects 4.

Injecting AspectJ aspects 4. Enterprise Spring 5. Hitting the database 5. No catch blocks! Templating data access 5. Using DAO support classes 5. Configuring a data source 5. Using a pooled data source 5. JDBC driver-based data source 5. Tackling runaway JDBC code 5. Integrating Hibernate with Spring 5. Choosing a version of Hibernate 5. Using Hibernate templates Using classic Hibernate mapping files Working with annotated domain objects Accessing data through the Hibernate template 5.

Building Hibernate-backed DAOs 5. Using Hibernate 3 contextual sessions 5. Caching 5. Configuring a caching solution Configuring EHCache 5. Proxying beans for caching Flushing the cache Declaring a proxied inner bean 5. Annotation-driven caching 5. Summary 6. Managing transactions 6.

Understanding transactions 6. Explaining transactions in only four words 6. Choosing a transaction manager 6. JDBC transactions 6. Hibernate transactions 6. Java Persistence API transactions 6. Java Data Objects transactions 6. Java Transaction API transactions 6. Programming transactions in Spring 6. Declaring transactions 6. Defining transaction attributes Propagation behavior Isolation levels Read-only Transaction timeout Rollback rules 6.

Proxying transactions Creating a transaction proxy template 6. Declaring transactions in Spring 2. Defining annotation-driven transactions 6.

Summary 7. Securing Spring 7. Security interceptors Authentication managers Access decisions managers Run-as managers After-invocation managers 7. Authenticating users 7. Configuring a provider manager 7. Controlling access 7.

Voting access decisions 7. Casting an access decision vote 7. Handling voter abstinence 7. Securing web applications 7. Handling the security context 7. Prompting the user to log in Basic authentication Form-based authentication 7. Handling security exceptions Handling authorization exceptions 7. Enforcing web security 7.

Ensuring a secure channel Managing channel decisions 7. View-layer security 7. Conditionally rendering content 7. Displaying user authentication information 7. Securing method invocations 7. Creating a security aspect 7. Securing methods using metadata 7.

Summary 8. Spring and POJO-based remote services 8. An overview of Spring remoting 8. Using business rules in enterprise applications. Providing a default interface implementation. An overview of the rule engine. Learning design patterns The ways you can use SNMP range from the mundane to the exotic: Declaring weave-time errors and warnings.

The worker object pattern. Readers will find this edition immensely helpful in answering questions like: Comparing advice with methods. The worker object creation pattern 8. Grails in Action, Second Edition.

Introduction to AOP 1. Computer vision-A Modern Method 2ed. This book is for developers who have experience in AOP and AspectJ, but also for those who are new to both.

A actio of the exception introduction pattern. This new edition focuses on Spring-AspectJ integration, which is a major feature of Spring 2. The Spark API is then looked at in more detail. AspectJ weaving models 8. Authentication and authorization Prasanna Foreword by Bob Lee. The email you send, the files you transmit between com- puters, even the passwords you type may be readable by others.

Ordering of advice in a single aspect. The AOP language implementation. Upgrade from Previous Releases.



0コメント

  • 1000 / 1000