码迷,mamicode.com
首页 >  
搜索关键字:closed    ( 3269个结果
面向对象的六大原则
面向对象的六大原则(推荐)要把软件做得非常灵活又要便于维护是一个很困难的事情。灵活的软件他的结构就复杂,维护起来就困难。有得必有失,关键就在于如何处理这两者,使得大于失。软件的设计开发应遵循以下六大原则:1. OCP全称:“Open-Closed Principle” 开放-封闭原则说明:对扩展开放...
分类:其他好文   时间:2015-04-30 13:47:24    阅读次数:260
Spring的原子操作Automaticy操作
/** Flag that indicates whether this context is currently active */ private final AtomicBoolean active = new AtomicBoolean(); /** Flag that indicates whether this context has been closed alr...
分类:编程语言   时间:2015-04-28 12:11:36    阅读次数:237
java.lang.IllegalStateException: BeanFactory not i
java.lang.IllegalStateException: BeanFactory not initialized or already closed - call ‘refresh‘ before accessing beans via the ApplicationContext at org.springframework.context.support.AbstractRefr...
分类:编程语言   时间:2015-04-24 17:00:38    阅读次数:121
架构中的设计原则之开闭原则(OCP) - 《java开发技术-在架构中体验设计模式和算法之美》
开闭原则OCP(Open for Extension,Closed for Modification)。开闭原则的核心思想是:一个对象对扩张开放,对修改关闭。 ? ? ? ? 其实开闭原则的意思就是:对类的改动是通过增加代码进行的...
分类:编程语言   时间:2015-04-23 21:52:55    阅读次数:199
TCP三次握手(建立连接)与四次挥手(释放连接)详解
上图画出了TCP的建立连接的过程。假定主机A运行的是TCP客户程序,而B运行TCP服务程序。最初两端的TCP进程都处于 CLOSED(关闭)状态。图中在主机下面的方框分别是TCP进程所处的状态。请注意,A主动打开连接,而B被动打开连接。B的TCP服务器进程先创建传输控制块TCB(Transmission Control Block),准备接受客户进程的连接请求。然后服务器进程就处于LISTEN(监听...
分类:其他好文   时间:2015-04-23 13:31:25    阅读次数:220
TCP连接建立
#+BEGIN_SRCplantuml:filep_w_picpaths/tcp_connect.png titleTCP连接建立 autonumber participantclient participantserver noteoverclient,server client与server初始状态都处于CLOSED endnote client->server:SYN(SEQ=x) activateclient noteleft:3次握手的第1步,\n此后..
分类:其他好文   时间:2015-04-22 18:43:08    阅读次数:172
IIS7 ASP Setting support 32 bit application,error number=3704
How to guide for getting a classic asp application working under IIS 7.0, resolved error number=3704 Operation is not allowed when the object is closed...
分类:移动开发   时间:2015-04-20 11:12:38    阅读次数:220
类设计的SOLID原则
SOLID原则是面向对象范式的核心单一职责原则(Single Responsible Principle, SRP):对于一个类,应该仅有一个引起它变化的原因。其基础是内聚,表示类完成单一功能的程度。开放—封闭原则(Open Closed Principle,OCP):类应该对扩展开放,对修改关闭。...
分类:其他好文   时间:2015-04-18 12:59:19    阅读次数:144
Message Box
By default, if we click on the x button on the titlebar, theQtGui.QWidgetis closed. Sometimes we want to modify this default behaviour. For example, i...
分类:其他好文   时间:2015-04-17 17:45:54    阅读次数:134
关于MultipleActiveResultSets属性导致的There is already an open DataReader associated with this Command which must be closed first的解决方法
执行SqlDataReader.Read之后,如果还想用另一个SqlCommand执行Insert或者Update操作的话,会得到一个错误提示:There is already an open DataReader associated with this Command which must be...
分类:其他好文   时间:2015-04-16 21:28:29    阅读次数:165
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!