月亮词典
首页
查询
AOP
面向方面的程序设计
常用释义
词性释义
abbr. 面向方面的程序设计(Aspect-Oriented Programming)
例句
全部
AOP
addresses
a
problem
space
that object-oriented
and
other
procedural
languages
have never been
able
to
deal
with
.
AOP
解决
了
面向
对象
和
其它
过程性
语言
未能
处理
的
一块
问题
空间
。
However
,
I
would
still
like
to
ask
, would they have
been
able
to
avoid
some
of these
design
tradeoffs
had they
used
AOP
?
但
我
还
是
要
问
一
问
,
如果
使用
AOP
的话
,
能否
避免
其中
一部分
设计
取舍
呢?
Even
Javascript
,
once
the
bane
of
every
web
developer
's
life
,
has
powerful
idioms allowing
AOP
to
be
implemented
easily
.
即便
是
曾经
祸害
过
每个
开发者
生活
的
Javascript
,
也
有
强大
的
方言
能够
方便地
实现
AOP
。
The
criteria
defined
here
should
also
make
it
easier
for you to
evaluate
upcoming
releases
of
AOP
tools
and
features
.
这里
定义
的
指标
还
会
让
读者
更加容易
地
评估
即将
推出
的
AOP
工具
和
特性
。
As
it
was with object-oriented
programming
,
we
've
got
to
spend
a
little
time
accumulating
the
wisdom
it
takes
to
use
AOP
effectively
.
因为
它
使用
了
面向
对象
编程
,
所以
我们
必须
花费
一些
时间
积累
相关
知识
以
更
有效地
使用
AOP
。
One
of the
best
practices
of
getting
most
out
of
AOP
is
to
use
to
metadata
to
capture
join
points
for
cross-cutting
concerns
.
从
AOP
获得
大部分
好处
的
最佳
实践
之一
就是
使用
元数据
去
为
横向
关注
点
(
cross-cuttingconcerns
)
捕获
连接
点
(
joinpoints
)。
Be
careful
to
benchmark
before
making a
decision
on
this
basis
:
the overhead
of
Spring
AOP
proxying
is
all but
undetectable
in
normal
use
.
在
这个
基础
上
做
决定
前
要
小心
基准
:
SpringAOP
代理
的
负载
在
通常
使用
中
是
无法
觉察
到
的
。
When
you're
aiming
for
separation
of
concerns
,
transparency
,
and
flexibility
,
aspect
-
oriented
programming
(
AOP
)
is
often
the
right
answer
.
如果
目的
是
分离
关注点
、
透明性
和
灵活性
,
那么
面向
方面
的
编程
(
AOP
)
通常
就是
正确
的
答案
。
I
'd
like to
talk about
some
of
the
ways
that
I
think
AOP
can
be
(
and
has
been
)
used
effectively
.
我
想
谈论
一些
我
认为
AOP
可以
被
(
或
已经
被
)
有效
使用
的
方法
。
Transition
logic
cross-cuts
all
intercepting
filters
and
as
you
might
have
guessed
AOP
yet
again
comes to mind as the
technology
of
choice
.
转移
逻辑
横贯
所有
拦截
过滤器
,
你
可能
已经
猜到
了
,
AOP
再次
成为
所
选
技术
。
At
the
heart
of
each
of the
AOP
tools
is
a
join
point
model
,
which
provides
a
means
of
identifying
where
the
crosscutting
is
happening
.
位于
每个
AOP
工具
核心
的
是
连接
点
模型
,
它
提供
了
一种
机制
,
可以
识别
出
在
哪里
发生
了
横切
。
For
a
more
comprehensive
review
of the
AOP
approach
,
consult
the
resources
provided
in the
"
References
"
section
at the
end
of this
article
.
为了
更加
完整
的
回顾
AOP
方法
,
请
您
参考
本文
最后
“
引用
”
一
节
中
所
提供
的
资源
。
It
is
possible
to
use
both
AspectJ
and
Spring
AOP
simultaneously
:
they
do
not
conflict
.
同时
使用
AspectJ
和
SpringAOP
是
可能
的
:
它们
并不
冲突
。
Using
an
AOP
language
,
we
might be
able
to
test
application
code
automatically
without
disturbing
the code
.
使用
AOP
语言
,
我们
可以
自动
测试
应用
程序代码
而
不会
对
代码
带来
干扰
。
Cedric Beust
described
Aspect
Oriented
Programming
(
AOP
)
as
"
a
great
idea
that
will
remain
the
privilege
of
a
few
expert
developers
"
.
CedricBeust
将
面向
方面
编程
(
AOP
)
描述
为
“
保留
少数
开发
内行
特权
的
一个
绝佳
主意
”。
As
shown
by the
figures
above
,
one
of
the
key
differences
among
the
AOP
tools
is
how each one
approaches
aspect
declaration
.
正如
上面
的
图
所
展示
的
,
AOP
工具
之间
的
关键
差异
就是
处理
方面
声明
的
方式
。
Writing
good
pointcuts is
key
to mastering
AOP
,
although
it
is
often
a
struggle
for
newcomers
.
编写
好
的
切入点
是
掌握
好
AOP
的
关键
,
尽管
这
对于
新手
来说
通常
不是
一件
容易
的
事
。
Of
course
coding
the
application
is
not
as
hard
as in
former
times
,
when
AOP
and
Spring
did
not
exist
.
当然
给
应用程序
编码
并
不会
像
以前
那样
复杂
,
那时
AOP
与
Spring
尚
并不
存在
。
No
AOP
knowledge
is
required
either to
read
this
article
or
to get
started
using
Aspects
for
MDD
.
阅读
这
篇文章
和
开始
使用
AspectsforMDD
是
不
需要
AOP
相关
知识
的
。
The
challenge
of
choosing
an
AOP
tool
for
your
project
is in comparing the trade-offs of each approach
without
getting
lost
in
them
.
为
项目
选择
一个
AOP
工具
所
面临
的
难题
在于
比较
每
种
工具
的
优劣
,
同时
不要
让
自己
迷失
其中
。
In
the
case
of
Spring
AOP
(
all
versions
),
the
only
joinpoint
supported
is
the
execution
of a
public
method
.
在
SpringAOP
(
所有
版本
)
的
案例
中
,
唯一
支持
的
连接
点
是
公有
方法
的
执行
。
As you
can
see
,
the
principle
for
supplying
annotation
is
the
same
across the
various
AOP
systems
,
although
the
syntax
differs
.
可以
看出
,
提供
注释
的
原理
在
不同
的
AOP
系统
中
是
相同
的
,
尽管
语法
不
一样
。
In
a
metadata
-
fortified
AOP
implementation
,
you
map
core
concerns
to
classes
just
as
you have
all
along
.
在
通过
元数据
增强
的
AOP
实现
中
,
就
像
平时
做
的
那样
,
可以
将
核心
关注点
映射
到
类
。
To
finish
off
this
quick
overview
about
AOP
,
let
me
present
a few
specific
terms
and
clarify
their
intended
meaning
.
为了
完成
此次
有关
AOP
的
快速
概述
,
我
将
介绍
一些
特定
术语
并
解释
它们各自
的
含义
。
Therefore
,
an
AOP
program
needs
to
be
compiled
as
a
unit
rather
than one
class
at
a
time
.
因此
,
需要
将
AOP
程序
作为
一个
单元
来
编译
,
而
不能
每次
编译
一
个
类
。
The
conciseness
of a
tool
's
aspect
declarations
should
help
determine
the
benefits
of
static
checking
for
that
tool
.
AOP
工具
的
方面
声明
的
简洁性
,
应当
有助于
判断
该
工具
静态
检查
的
优势
。
At
this time
,
the
AspectJ
compiler
is
the
only
commercial
-
quality
AOP
compiler
,
although
other
research
-
quality
compilers
exist
.
目前
,
虽然
还
存在
其他
研究
质量
的
编译
器
,
但是
AspectJ
编译
器
是
惟一
达到
商业
质量
的
AOP
编译
器
。
AOP
allows
the
fault
handling
concern
to
be
encapsulated
in
a
common
Aspect
applied to the
participating
classes
.
AOP
让
故障
处理
的
问题
被
封装
在
通用
的
可以
作用
到
参与
类
的
层面
上
。
I
ll
explain
some
of
the
design
opportunities
presented by
using
an
AOP
construct
to
supply
annotation
toward the
end
of
this article
.
在
本文
最后
,
我
将
说明
使用
AOP
构造
提供
注释
带来
的
一些
设计
可能性
。
Therefore
,
strictly
speaking
, it
may
appear
that
Design
by
Contract
isn't an appropriate
candidate
for an
AOP
approach
at
all
.
所以
,
严格
来说
,
契约
式
设计
看起来
可能
根本
不是
AOP
技术
的
备选
方案
。
网络释义
面向方面编程(Aspect-Oriented Programming)
面向方面编程
(
AOP
) 提供从另一个角度来考虑程序结构以完善面向对象编程(OOP)。 面向对象将应用程序分解成 各个层次 …
面向切面编程
面向切面编程
(
aop
)是对面向对象编程(oop)的补充,面向对象编程将程序分解成各个层次的对象,面向切面编程将程序运 …
面向方面的编程
摘要
面向方面的编程
(
AOP
)是一种新的编程技术,它弥补了面向对象的编程(OOP)在跨越模块行为上的不足。AOP引进了Aspect…
更新时间:2025-05-01 20:08