Some additional information about running this example code
-----------------------------------------------------------
Emptying the CLASSPATH before running the rmiregistry
------------------------------------------------------
The first thing to watch out for is that you will need to empty the classpath to run the rmiregistry.
Several examples of how to do this are available at http://java.sun.com/docs/books/tutorial/rmi/running.html.
Using the example security settings
-----------------------------------
The example comes with a simple set of security settings in the wideopen.policy file.
To run the example you will need to add the security policy to the java command when
you run the server, the Server class, and the client, the MainApplication class,
by using the �Djava.security.profile virtual machine property.
Switching build configurations between local and build
------------------------------------------------------
This example comes with two build configurations. The 'local' configuration will
not weave the remoting aspect and the application will function normally in local mode.
The 'build'configuration will incorporate the aspect and switch to using RMI.
Be aware that if you are using Eclipse and switch between modes the classes generated from
the command line by the rmic tool will be deleted and will need to be re-generated.
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
当面向对象编程(OO)首次出现时,它是一种启示。OO使开发人员能够创建更灵活、更健壮的软件。但随着时间的推移,应用程序变得更复杂,人们发现“传统的”OO体系结构在某些领域不能胜任。面向方面编程(AOP)通过进一步扩展OO方法,解决了这些问题。 许多开发人员都对AOP感兴趣 —— 特别是对AspectJ感兴趣,这个Java编程语言的开源扩展明确支持AOP方法。然而,尽管AspectJ纳入在Eclipse这个日益流行的Java开源IDE之内,但是找到一种实用、非理论的方式来学习这种语言及其他AOP工具和技术已经成为一个实际的问题。 迄今为止,本书提供了实用的解决方案以及大量的代码和秘诀,便于使用AOP的独特方法来解决日常设计和编程问题。本书包括以下内容: ● 初识AOP ● 集成AspectJ与Eclipse、Ant和Java命令行工具 ● 将面向方面的应用程序部署为servlet、JSP、Web服务等 ● 关于方面、切入点、通知以及核心AOP构造的每个方面的秘诀 ● 在Java和J2EE设计模式实现中使用方面 ● 使用AOP特有的设计模式,增强现有的Java应用程序 本书展示了为什么以及如何使用AOP技术来解决常见的Java开发问题。本书利用受欢迎的问题/解决方案/讨论格式,介绍了许多现实的示例,不仅仅从概念角度演示AOP;它是一个开发过程,让用户以一种即时、可见的方式受益。如果想了解AOP如何改变软件开发的方式,如何使用AspectJ使代码更加模块化,更易于开发、维护、演进和部署,那么本书确实很适合你。
资源推荐
资源详情
资源评论
收起资源包目录
aspectj cookbook 源代码 (416个子文件)
LogicalOrRecipe.aj 3KB
LogicalAndRecipe.aj 3KB
ThisRecipe.aj 3KB
TargetRecipe.aj 2KB
AnonymousPointcutRecipe.aj 2KB
PointcutReuseRecipe.aj 2KB
IfRecipe.aj 2KB
CFlowBelowRecipe.aj 2KB
CFlowRecipe.aj 2KB
MemberAccessRecipe.aj 2KB
WithinMethodRecipe.aj 1KB
AdvisedAspect.aj 1KB
PerControlFlow.aj 1KB
PerTarget.aj 1KB
PerThis.aj 1KB
LogicalNotRecipe.aj 1KB
Singleton.aj 1KB
AspectA.aj 1KB
WithinClassRecipe.aj 1KB
AdviseAspectRecipe.aj 1KB
AspectB.aj 1KB
WithinPackageRecipe.aj 1KB
AfterReturningAdviceRecipe.aj 1KB
AfterThrowingAdviceRecipe.aj 1KB
BeforeAdviceRecipe.aj 1KB
AfterAdviceRecipe.aj 1KB
MyAspect.aj 941B
MyAspect.aj 934B
CompilationAdviceRecipe.aj 655B
DefaultInterfaceImplementationRecipe.aj 581B
ExtendClassRecipe.aj 521B
ImplementInterfaceRecipe.aj 375B
PrinterScreenAdapter.aj 202B
noaspects.ajproperties 366B
Traditional OO.ajproperties 93B
deployment.ajproperties 78B
local.ajproperties 65B
testing.ajproperties 43B
echotest.applescript 132B
index.html 409B
index.html 398B
myapplication.jar 38KB
aspectjrt.jar 34KB
aspectjrt.jar 34KB
aspectjrt.jar 34KB
aspectjrt.jar 34KB
MyAspectOrientedApp.jar 2KB
helloworldlibrary.jar 1KB
MyApp.jar 897B
MyApplicationProperties.java 5KB
ThisJoinPointRecipe.java 3KB
AroundAdviceRecipe.java 3KB
LazyFeatureLoading.java 3KB
TracingAspect.java 3KB
TracingAspect.java 3KB
PackageSpecificLoggingAspect.java 3KB
CommandPattern.java 2KB
ArgsRecipe.java 2KB
AccountPersistenceAspect.java 2KB
ApplicationLoggingAspect.java 2KB
LoginScreen.java 2KB
simple_jsp.java 2KB
HelpChain.java 2KB
MainApplication.java 2KB
ChainOfResponsibilityPattern.java 2KB
ResourcePoolingAspect.java 2KB
EmployeePersistenceAspect.java 2KB
BusinessResource2PoolingAspect.java 2KB
BusinessResourcePoolingAspect.java 2KB
MyClass.java 2KB
MyClass.java 2KB
MyClass.java 2KB
CompositePattern.java 2KB
MainApplication.java 2KB
ProxyPattern.java 2KB
ProxyPattern.java 2KB
TransferTransactionAspect.java 1KB
MainApplication.java 1KB
PreInitializationRecipe.java 1KB
VerifyMethodArgsAspect.java 1KB
AbstractImplementationAspect.java 1KB
MainApplication.java 1KB
AddHTMLHeaderAndFooter.java 1KB
MyClass.java 1KB
MyClass.java 1KB
InitializationRecipe.java 1KB
EmployeeIterator.java 1KB
FlyweightPattern.java 1KB
MainApplication.java 1KB
MainApplication.java 1KB
ExecutionNewRecipe.java 1KB
CallNewRecipe.java 1KB
ObserverPattern.java 1KB
TCPConnectionState.java 1KB
MainApplication.java 1KB
AdviceExecutionRecipe.java 1KB
CallRecipe.java 1KB
ReusePointcutsRecipe.java 1KB
SingletonPattern.java 1KB
InventoryReportVisitor.java 1KB
共 416 条
- 1
- 2
- 3
- 4
- 5
资源评论
- 加菲也烦恼2013-05-20不错,确实是书中对应的源码
- refuseG2014-03-17很好的资源,有很多源码
hsh8523
- 粉丝: 0
- 资源: 1
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功