为了降低代码耦合程度,提高项目的可维护性,Yii采用多许多当下最流行又相对成熟的设计模式,包括了依赖注入(Denpdency Injection, DI)和服务定位器(Service Locator)两种模式。 关于依赖注入与服务定位器,Inversion of Control Containers...
分类:
其他好文 时间:
2015-04-10 17:09:02
阅读次数:
193
《Head First Design Pattern》一书中对观察者模式的定义如下:
The Observer Pattern defines a one-to-many dependency objects so that when one object changes state, all of its dependents are notified and updated automatic...
分类:
其他好文 时间:
2015-04-09 23:54:29
阅读次数:
319
在UML类图中,常见的有以下几种关系:泛化(Generalization),实现(Realization),关联(Association),聚合(Aggregation),组合(Composition),依赖(Dependency)1.泛化(Generalization)【泛化关系】:是一种继承关系...
分类:
其他好文 时间:
2015-04-09 16:49:49
阅读次数:
93
Cocoapods目前最新的正式版本是0.35.0,如果升级到这个版本,并且在project中使用XMPPFramework,在pod install之后会出现如下循环依赖的问题There is a circular dependency between XMPPFramework/Core and...
分类:
其他好文 时间:
2015-04-09 13:25:53
阅读次数:
102
csh@csh-laptop:~/ejabberd-15.03$ sudo apt-get install mysqlReading package lists... DoneBuilding dependency tree Reading state information... Do...
分类:
系统相关 时间:
2015-04-09 06:08:42
阅读次数:
216
dependency analysis warning: The Copy Bundle Resources build phase contains this target's Info.plist file 'xxx/Info.plist'.
出现Warning的原因
遇到这种情况,是因为在合成项目,或者添加项目文件时,将Info.plist 文件以下列方式加入到了项目中。...
分类:
其他好文 时间:
2015-04-07 17:51:10
阅读次数:
162
在使用settings的时候,如果通过代码的形式添加CheckboxPreference,使用setDependency()方法的注意事项: private static final String PARENT_CHECKBOX_PREFERENCE = "parent_checkbox_preference";
@Ov...
分类:
其他好文 时间:
2015-04-07 14:00:22
阅读次数:
133
(一) 通过 xfire 发布 webservice 服务
1.添加 xfire相关jar包(以maven为例):
<dependency>
<groupId>org.codehaus.xfire</groupId>
<artifactId>xfire-all</artifactId>
<version>1.2.6<...
分类:
其他好文 时间:
2015-04-04 22:41:05
阅读次数:
186
如果软件复杂,那么依赖关系的整理是一个很严重的问题,软件设计到的模块可能存在多个版本,可能在不断的改动;如果版本对不上或者有依赖文件丢失,那么就需要这样一个工具来协助判断哪里出了问题.软件的主窗口截图如下:截图的标号分别对应于:1、 常用工具栏工具栏按钮功能分别是Open(打开): 打开(dll/e...
分类:
其他好文 时间:
2015-04-03 20:56:30
阅读次数:
140
pom.xml配置项 <dependency> ? <groupId>org.reflections</groupId> ? <artifactId>reflections</artifactId> ? <version>0.9.9</version> </dependency>...
分类:
其他好文 时间:
2015-04-02 19:17:37
阅读次数:
105