Spring 2.5 Aspect Oriented Programming
图书信息
| 作者 | Massimiliano Dessi |
| 出版社 | Packt Publishing |
| ISBN | 9781847194039 |
| 出版时间 | 2009-02-27 |
| 字数 | 258.4万 |
| 分类 | 进口书,外文原版书,电脑,网络 |
读书简介
Employing a comprehensive tutorial-based approach, this easy-to-follow book shows the reader various means of using AOP with Spring in a real-world scenario. Clear step-by-step instructions ensure that you will not get lost in the new world of AOP and Spring. If you are a Java software architect, engineer, or developer and want to be able to write applications in a more modular and concise way by using Spring, then you need this book. Readers need basic knowledge of Spring and its configuration.
目录
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
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
Summary
2. Spring AOP Components
Aspect
Pointcut
Pointcut and its components
NameMatchMethodPointcut
RegexpMethodPointcut
StaticMethodMatcherPointcut
DynamicMethodMatcherPointcut
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
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
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
Sample application
Design
Services
Factories
Repositories
Summary
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
- 合同解除制度研究(李晓钰)
- GBT 51338-2018 分布式电源并网工程调试与验收标准(电力企业联合会)
- 大白鲸童话森林·樟树公寓的十二家房客(梅瑜)
- 人机对话系统(曹均阔,陈国莲)
- Fericirea mea e?ti tu(McGuire Jamie)
- 内部审计工作指南:穿透实务核心(郭长水,纪新伟 主编)
- 全国名校二外英语考研真题详解(圣才电子书)
- 家庭营养套餐(《健康餐桌》编委会编)
