SPRING.NET 1.3.2 学习7--使用外部对象和内部对象
来源:互联网 发布:红旗linux桌面版 编辑:程序博客网 时间:2024/05/01 14:17
使用ref标签来使用外部对象
定义外部对象:
<!-- in the parent context --><object id="AccountService" type="MyApp.SimpleAccountService, MyApp"> <!-- insert dependencies as required as here --></object>使用外部对象:
<!-- in the child (descendant) context --><object id="AccountService" <-- notice that the name of this object is the same as the name of the 'parent' object type="Spring.Aop.Framework.ProxyFactoryObject, Spring.Aop"> <property name="target"> <ref parent="AccountService"/> <-- notice how we refer to the parent object --> </property> <!-- insert other configuration and dependencies as required as here --></object>使用内部对象
<object id="outer" type="..."> <!-- Instead of using a reference to target, just use an inner object --> <property name="target"> <object type="ExampleApp.Person, ExampleApp"> <property name="name" value="Tony"/> <property name="age" value="51"/> </object> </property></object>
- SPRING.NET 1.3.2 学习7--使用外部对象和内部对象
- Spring.NET学习笔记(5)-对象生命周期和创建者对象
- Spring.NET学习笔记(5)-对象生命周期和创建者对象
- 【Spring学习07】依赖配置:内部对象
- SPRING.NET 1.3.2 学习21--使用对象或类的属性值进行注入
- 商务交流从对象上分内部和外部交流
- SPRING.NET 1.3.2 学习4 --实例化对象
- SPRING.NET 1.3.2 学习10--合并集合对象
- SPRING.NET 1.3.2 学习25--自定义对象的行为
- ASP .NET内部对象
- static inline与内部、外部链接对象
- asp.net内部对象_1
- asp.net内部对象_2
- asp.net内部对象_3
- C#.net的内部对象
- Asp.net 内部对象Application
- 巧妙使用数组,内部匿名类改变外部类final对象值
- 内部链接和外部链接以及const对象在头文件中的若干问题
- PHP 魔法属性&方法
- __stdcall __cdecl 与 __fastcall 区别
- Oracle显式游标和隐式游标
- Linux/Unix shell 参数传递到SQL脚本
- [python相关]BaseHTTPServer -- 基本的 HTTP 服务器
- SPRING.NET 1.3.2 学习7--使用外部对象和内部对象
- GYP 简介
- intent.setFlags方法中的参数值含义
- Shuffle Error: Exceeded MAX_FAILED_UNIQUE_FETCHES; bailing-out.
- hpp
- F2812 外部中断及其中断问题
- Cortex-M3和Cortex-M4 Fault异常应用之二 ----- Fault处理函数的实现
- HtmlAgilityPack 抓取中文页面乱码问题的解决方案
- 如何设置Windows 7远程桌面连接