Spring 2.5 Aspect Oriented Programming. Create dynamic, feature-rich, and robust enterprise applications using the Spring framework - Helion
Tytuł oryginału: Spring 2.5 Aspect Oriented Programming. Create dynamic, feature-rich, and robust enterprise applications using the Spring framework
ISBN: 9781847194039
stron: 332, Format: ebook
Data wydania: 2009-02-27
Księgarnia: Helion
Cena książki: 129,00 zł
Developing powerful web applications with clean, manageable code makes the maintenance process much easier. Aspect-Oriented Programming (AOP) is the easiest and quickest way to achieve such results. Spring is the only Java framework to offer AOP features. The combined power of Spring and AOP gives a powerful and flexible platform to develop and maintain feature-rich web applications quickly.
This book will help you to write clean, manageable code for your Java applications quickly, utilizing the combined power of Spring and AOP. You will master the concepts of AOP by developing several real-life AOP-based applications with the Spring Framework, implementing the basic components of Spring AOP: Advice, Joinpoint, Pointcut, and Advisor.
This book will teach you everything you need to know to use AOP with Spring. It starts by explaining the AOP features of Spring and then moves ahead with configuring Spring AOP and using its core classes, with lot of examples. It moves on to explain the AspectJ support in Spring. Then you will develop a three-layered example web application designed with Domain-Driven Design (DDD) and built with Test-Driven Development methodology using the full potential of AOP for security, concurrency, caching, and transactions.
Osoby które kupowały "Spring 2.5 Aspect Oriented Programming. Create dynamic, feature-rich, and robust enterprise applications using the Spring framework", wybierały także:
- Windows Media Center. Domowe centrum rozrywki 66,67 zł, (8,00 zł -88%)
- Ruby on Rails. Ćwiczenia 18,75 zł, (3,00 zł -84%)
- Przywództwo w świecie VUCA. Jak być skutecznym liderem w niepewnym środowisku 58,64 zł, (12,90 zł -78%)
- Scrum. O zwinnym zarządzaniu projektami. Wydanie II rozszerzone 58,64 zł, (12,90 zł -78%)
- Od hierarchii do turkusu, czyli jak zarządzać w XXI wieku 58,64 zł, (12,90 zł -78%)
Spis treści
Spring 2.5 Aspect Oriented Programming. Create dynamic, feature-rich, and robust enterprise applications using the Spring framework eBook -- spis treści
- Spring 2.5 Aspect-Oriented Programming
- Table of Contents
- Spring 2.5 Aspect-Oriented Programming
- Credits
- About the Author
- About the Reviewer
- 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 for the book
- Errata
- Piracy
- Questions
- 1. Understanding AOP Concepts
- Limits of object-oriented programming
- Code scattering
- Code tangling
- The AOP solution
- What Spring provides in terms of AOP
- Programmatic way
- Before advice
- After returning advice
- Around advice
- After throwing advice
- The old Spring XML way
- Programmatic way
- AOP with IoC in Spring 2.5
- AspectJ annotations
- Before advice
- After returning advice
- Around advice
- After (finally) advice
- After throwing advice
- Schema-based configuration
- Before advice
- After advice
- After returning advice
- After throwing advice
- Around advice
- AspectJ annotations
- Summary
- Limits of object-oriented programming
- 2. Spring AOP Components
- Aspect
- Pointcut
- Pointcut and its components
- NameMatchMethodPointcut
- RegexpMethodPointcut
- StaticMethodMatcherPointcut
- DynamicMethodMatcherPointcut
- Pointcut and its components
- Operations on Pointcut
- ComposablePointcut
- ControlFlowPointcut
- Pointcut constants
- Joinpoint
- Advice
- Before advice
- After returning advice
- After throwing advice
- Advisor
- Introductions
- Summary
- 3. Spring AOP Proxies
- Proxy
- JDK proxy
- CGLIB proxy
- Creating proxies programmatically
- ClassicProxy
- AspectJProxy
- ProxyFactoryBean
- ProxyFactoryBean and proxies
- ProxyFactoryBean in action
- Advised objects
- Autoproxy
- Autoproxy with classic Spring
- BeanNameAutoProxyCreator
- DefaultAdvisorAutoProxyCreator
- AbstractAdvisorAutoProxyCreator
- AutoProxyCreator with metadata
- Autoproxy with AspectJ
- Autoproxy with annotation
- Autoproxy with XML Schema
- Autoproxy with classic Spring
- Target sources
- Hot swappable target sources
- Pooling target sources
- Prototype target sources
- ThreadLocal target source
- Summary
- 4. AspectJ Support
- AspectJ annotations
- Aspect
- Pointcut
- execution
- within
- this
- target
- args
- @target
- @args
- @ within
- @ annotation
- bean
- Selection on methods names
- Selection on types of argument
- Selection on type of return
- Selection on declared exceptions
- Selection on hierarchy
- Selection on annotations
- Binding advice arguments
- JoinPoint
- Binding arguments
- Binding of return values
- Exception binding
- Annotation binding
- Advice
- @Before
- @AfterReturning
- @AfterThrowing
- @After
- @Around
- Introduction
- XML Schema-based configuration
- Aspect
- Pointcut
- Advice
- Before advice
- After returning advice
- After throwing advice
- After (finally) advice
- Around advice
- Introduction
- Advisors
- Recipes
- Dependency injection in domain objects
- Advice ordering
- Configuration mixin
- Aspect instantiation model
- AspectJ weaving in Spring
- Load-time weaving with Spring
- Load-time weaving with AspectJ
- AOP strategy considerations
- Summary
- AspectJ annotations
- 5. Design with AOP
- Concurrency with AOP
- Transparent caching with AOP
- Security with AOP
- Securing methods with security interceptors
- Securing methods with pointcuts
- Securing methods with annotations
- Summary
- 6. Three-tier Spring Application, Domain-Driven Design
- Domain-Driven Design
- Roles and responsibilities
- Entities
- Aggregates
- Modules
- Value objects
- Factories
- Repositories
- Services
- Architecture
- User interface
- Application layer
- Domain layer
- Infrastructure layer
- Roles and responsibilities
- Sample application
- Design
- Services
- Factories
- Repositories
- Summary
- Domain-Driven Design
- 7. Three-tier Spring Application, Tests and AOP
- Application layer and user interface
- Test
- AOP
- Cache
- Concurrent
- TimeExecutionManagedAspect
- Transactions
- Security
- Summary
- 8. Develop with AOP Tools
- Java Development Kit
- Spring
- Eclipse
- Eclipse plug-ins (Linux, MacOSX, and Windows)
- SpringIDE
- AJDT
- Apache Tomcat
- Ubuntu Linux
- MacOSX
- Microsoft Windows
- Common steps for Linux, MacOSX, and Windows
- PostgreSQL
- Ubuntu Linux
- MacOSX
- Microsoft Windows
- Common steps for Linux, Apple MacOSX, and Microsoft Windows
- JDBC Driver
- Summary
- Index