码迷,mamicode.com
首页 >  
搜索关键字:instance    ( 6546个结果
张小二求职记之 单例模式(三)之决战多线程
M:上回说的多线程的单例模式会了?z;略懂M:写一个吧package 单例模式;public class Singleton { private static Singleton instance=null; private Singleton() { Sys...
分类:编程语言   时间:2014-06-26 21:04:34    阅读次数:307
Xcode编译异常和警告汇总(持续更新中)
1.Method definition for 'xxx' not foundxxx的方法没有实现出现原因.h声明了xxx方法但是.m没有实现xxx方法解决方法:在类的.m文件实现xxx方法2. Instance variable ‘xxx' accessed in class method在类方法...
分类:其他好文   时间:2014-06-26 20:43:13    阅读次数:212
多线程练习 -- 单例设计模式
Singleton.h#define singleton_h(name) + (instancetype)shared##name;#if __has_feature (objc_arc)#define singleton_m(name) \static id _instance; \\+ (id)...
分类:编程语言   时间:2014-06-26 16:39:23    阅读次数:193
CI框架下的get_instance() 函数
你随便下个CI框架的源码都会看到很多的get_instance() 函数,这个函数是用来获取CI 的全局超级对象,CI 是单例模式的框架,所有全局有一个超级对象。因为只有一个实例,所以无论这个函数使用多少次都不会消耗资源的。一般来说,只有在helper或library中才使用get_instance...
分类:其他好文   时间:2014-06-26 14:57:54    阅读次数:155
ruby简单的基础 6
模块模块同类一样,也有 class method 和 instance method。module 没有new不能生成实例对象其中 class method 在模块中称为模块方法,是可以直接调用的。module Foo def self.hello puts 'hello world!' end def Foo.dear #module全局作用域内的self还是没有变,就是...
分类:其他好文   时间:2014-06-26 14:19:28    阅读次数:163
【转载】oracle 体系架构图
1. 几个重要的Oracle术语要学习Oracle的体系结构,先要搞明白几个重要的术语:Oracle服务器、Oracle实例、Oracle数据库。Oracle服务器:即Oracle server,由Oracle实例和Oracle数据库组成。Oracle实例:即Oracle instance,是在Or...
分类:数据库   时间:2014-06-25 21:14:59    阅读次数:280
MemCached Client集群方案
MemCached Client集群方案By mingjun HouCluster的实现 Memcached作为集中式Cache,就存在着集中式的致命问题:单点问题,Memcached支持多Instance分布在多台机器上,仅仅 只是解决了数据全部丢失的问题,但是当其中一 台机 器...
分类:其他好文   时间:2014-06-25 16:28:29    阅读次数:175
[Bug]Object reference not set to an instance of an object.
引言今天在客户这儿,由一个问题导致,需求的变化,不得不修改代码,在记录日志中出现该问题。原因通过id查找相关信息,没有判断是否为null,集合是否有数据。Object reference not set to an instance of an object.翻译:未将对象引用设置到对象的实例。总结...
分类:其他好文   时间:2014-06-25 13:18:31    阅读次数:155
objects classes and metaclasses in Objective-C
Objective-C is a class-based object system. Each object is an instance of some class; the object'sisapointer points to its class. That class describ.....
分类:其他好文   时间:2014-06-25 11:48:57    阅读次数:162
Teamcenter10 step-by-step installation in Linux env-Oracle Instance Creation
Configure Oracle environment It is recommended that user sets the specific environment for Oracle installation in ~/.bash_profile file prior to instan...
分类:数据库   时间:2014-06-24 15:26:00    阅读次数:611
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!