<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom"><title type="text">博客园_Kevin_分类_08-面向对象技术</title><id>http://feed.cnblogs.com/blog/u/35666/category/160007/rss</id><updated>2012-06-03T14:39:07Z</updated><generator>feed.cnblogs.com</generator><link rel="alternate" type="text/html" href="http://www.cnblogs.com/kevin-wang/category/160007.html"/><link rel="self" type="application/atom+xml" href="http://feed.cnblogs.com/blog/u/35666/category/160007/rss"/><entry><id>http://www.cnblogs.com/kevin-wang/archive/2010/04/29/1723462.html</id><title type="text">你真的了解Ioc与AOP 吗?(5)</title><summary type="text">六、利用Ioc在不修改任何原有代码的情况下实现Remoting上文我们提到，为了实现对HelloGenerator.dll的分布式调用，我们不得不修改了原有程序的多处代码。那么有没有可能在不动任何原有代码的情况下，单纯靠添加组件、修改配置文件实现远程访问呢？当然可以。这次我们还是使用Spring.net完成这个工作。 经过调整后的系统组件构成如下图所示： 该方案没有修改“src\Ste...</summary><published>2010-04-29T00:11:00Z</published><updated>2010-04-29T00:11:00Z</updated><author><name>Kevin-wang</name><uri>http://www.cnblogs.com/kevin-wang/</uri></author><link rel="alternate" href="http://www.cnblogs.com/kevin-wang/archive/2010/04/29/1723462.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/kevin-wang/archive/2010/04/29/1723462.html"/><content type="text">六、利用Ioc在不修改任何原有代码的情况下实现Remoting上文我们提到，为了实现对HelloGenerator.dll的分布式调用，我们不得不修改了原有程序的多处代码。那么有没有可能在不动任何原有代码的情况下，单纯靠添加组件、修改配置文件实现远程访问呢？当然可以。这次我们还是使用Spring.net完成这个工作。 经过调整后的系统组件构成如下图所示： 该方案没有修改“src\Ste...</content></entry><entry><id>http://www.cnblogs.com/kevin-wang/archive/2010/04/29/1723461.html</id><title type="text">你真的了解Ioc与AOP吗?(4)</title><summary type="text">五、使用Remoting对原有系统进行改造如果使用Remoting技术对HelloGenerator进行改造，使其具有分布式远程访问能力，那么在不使用Ioc技术的情况下，我们将会作出如下调整：（1）让HelloGenerator继承自MarshalByRefObject类如果要让某个对象具有分布式的功能，必须使其继承自MarshalByRefObject，这样才可以具有远程访问的能力。因此我们需要...</summary><published>2010-04-29T00:10:00Z</published><updated>2010-04-29T00:10:00Z</updated><author><name>Kevin-wang</name><uri>http://www.cnblogs.com/kevin-wang/</uri></author><link rel="alternate" href="http://www.cnblogs.com/kevin-wang/archive/2010/04/29/1723461.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/kevin-wang/archive/2010/04/29/1723461.html"/><content type="text">五、使用Remoting对原有系统进行改造如果使用Remoting技术对HelloGenerator进行改造，使其具有分布式远程访问能力，那么在不使用Ioc技术的情况下，我们将会作出如下调整：（1）让HelloGenerator继承自MarshalByRefObject类如果要让某个对象具有分布式的功能，必须使其继承自MarshalByRefObject，这样才可以具有远程访问的能力。因此我们需要...</content></entry><entry><id>http://www.cnblogs.com/kevin-wang/archive/2010/04/29/1723460.html</id><title type="text">你真的了解Ioc与AOP 吗?(3)</title><summary type="text">四、使用Spring.net实现依赖注入Spring在Java界可是响当当的名字，现在也有.net平台下的Spring框架了，那就是Spring.net。用户可以从http://www.springframework.net/下载到Spring.net的最新版本。本例子中使用的版本为“Spring Interim Build August 15, 2005 ”，并对Spri...</summary><published>2010-04-29T00:09:00Z</published><updated>2010-04-29T00:09:00Z</updated><author><name>Kevin-wang</name><uri>http://www.cnblogs.com/kevin-wang/</uri></author><link rel="alternate" href="http://www.cnblogs.com/kevin-wang/archive/2010/04/29/1723460.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/kevin-wang/archive/2010/04/29/1723460.html"/><content type="text">四、使用Spring.net实现依赖注入Spring在Java界可是响当当的名字，现在也有.net平台下的Spring框架了，那就是Spring.net。用户可以从http://www.springframework.net/下载到Spring.net的最新版本。本例子中使用的版本为“Spring Interim Build August 15, 2005 ”，并对Spri...</content></entry><entry><id>http://www.cnblogs.com/kevin-wang/archive/2010/04/29/1723459.html</id><title type="text">你真的了解Ioc与AOP 吗?(2)</title><summary type="text">三、基于配置文件和Reflection的工厂模式为了消除MainApp对其它组件的依赖性，我们引入工厂模式，并且根据配置文件指定的装配规程，利用.net提供的反射技术完成对象的组装工作。本部分代码仅仅提供一种功能演示，如果实际应用仍需进一步完善（建议使用一些成型的Ioc框架，例如Spring.net或Castle等）。经过改造后的系统，组件间依赖关系如下图： 可以看出这次实现了真正的“...</summary><published>2010-04-29T00:08:00Z</published><updated>2010-04-29T00:08:00Z</updated><author><name>Kevin-wang</name><uri>http://www.cnblogs.com/kevin-wang/</uri></author><link rel="alternate" href="http://www.cnblogs.com/kevin-wang/archive/2010/04/29/1723459.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/kevin-wang/archive/2010/04/29/1723459.html"/><content type="text">三、基于配置文件和Reflection的工厂模式为了消除MainApp对其它组件的依赖性，我们引入工厂模式，并且根据配置文件指定的装配规程，利用.net提供的反射技术完成对象的组装工作。本部分代码仅仅提供一种功能演示，如果实际应用仍需进一步完善（建议使用一些成型的Ioc框架，例如Spring.net或Castle等）。经过改造后的系统，组件间依赖关系如下图： 可以看出这次实现了真正的“...</content></entry><entry><id>http://www.cnblogs.com/kevin-wang/archive/2010/04/29/1723458.html</id><title type="text">你真的了解Ioc与AOP 吗?(1)</title><summary type="text">本系列的全部源代码及二进制文件可以从这里下载：IocInCSharp.rar 你真的了解Ioc与AOP吗？我现在还不是很了解，而且越学习越发现自己了解的很少，Ioc与AOP中蕴涵了大量的能量等待我们去开发。在这个系列中，我仅仅利用Sping.net这个框架向大家展示一下Ioc与AOP的强大功能（呵呵，其实写这段话的目的是因为“文章题目”牛皮吹得有点大了，给自己个台阶下罢了）...</summary><published>2010-04-29T00:07:00Z</published><updated>2010-04-29T00:07:00Z</updated><author><name>Kevin-wang</name><uri>http://www.cnblogs.com/kevin-wang/</uri></author><link rel="alternate" href="http://www.cnblogs.com/kevin-wang/archive/2010/04/29/1723458.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/kevin-wang/archive/2010/04/29/1723458.html"/><content type="text">本系列的全部源代码及二进制文件可以从这里下载：IocInCSharp.rar 你真的了解Ioc与AOP吗？我现在还不是很了解，而且越学习越发现自己了解的很少，Ioc与AOP中蕴涵了大量的能量等待我们去开发。在这个系列中，我仅仅利用Sping.net这个框架向大家展示一下Ioc与AOP的强大功能（呵呵，其实写这段话的目的是因为“文章题目”牛皮吹得有点大了，给自己个台阶下罢了）...</content></entry><entry><id>http://www.cnblogs.com/kevin-wang/archive/2008/10/24/1318949.html</id><title type="text">适配器模式（Adapter Pattern）</title><summary type="text"/><published>2008-10-24T09:31:00Z</published><updated>2008-10-24T09:31:00Z</updated><author><name>Kevin-wang</name><uri>http://www.cnblogs.com/kevin-wang/</uri></author><link rel="alternate" href="http://www.cnblogs.com/kevin-wang/archive/2008/10/24/1318949.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/kevin-wang/archive/2008/10/24/1318949.html"/><content type="text"/></entry></feed>
