IT人习惯把具体的事物加工成的形状一致的类,正是这样的一致,加上合适的规范,才能彰显对象筋道的牙感和bean清香的味道。Spring比谁都清楚OO的奥妙,让组件之间的依赖关系由容器在运行时期决定,称作依赖注入(Dependency Injection)。...
分类:
编程语言 时间:
2014-06-19 11:03:35
阅读次数:
402
直接上菜
/*接口类*/
public interface MsgListener{
public void afterMsgRecived(String msgData);
}
/*工具类*/
public class Tools{
public static void getMsgData(String reciver,MsgListener listener){
reciver+...
分类:
编程语言 时间:
2014-06-19 10:57:26
阅读次数:
295
一、RootViewController:
#import "RootViewController.h"
#import "SecondViewController.h"
@interface RootViewController ()
{
UILabel *_myLabel;
}
@end
@implementation RootViewController
- (id)in...
分类:
其他好文 时间:
2014-06-19 10:24:12
阅读次数:
283
创建一个BOOK对象,对其属性进行声明 定义。
@property 属性声明 定义了对属性的赋值
-(void) dealloc 方法在对象销毁的时候进行调用;
#import
@interface Book : NSObject
@property (nonatomic,assign) int price;
@end
#import "Book.h"
@imp...
分类:
其他好文 时间:
2014-06-16 12:05:04
阅读次数:
271
The graphical user interface for an Android app
is built using a hierarchy ofViewandViewGroupobjects.Viewobjects are usually UI
widgets such asbuttons...
分类:
移动开发 时间:
2014-06-16 10:43:38
阅读次数:
268
实现功能: 自定义视频流,实时预览。运行环境: 1. XCODE 5.1.1 2.
真机(IPHONE5 , IOS6.1.4)#import #import //导入 - "视频流"@interface MCViewController :
UIViewController@p...
分类:
其他好文 时间:
2014-06-16 06:01:42
阅读次数:
254
实现功能: 相机拍照,把图像保持到系统相册。运行环境: 1. XCODE 5.1.1 2.
真机(IPHONE5 , IOS6.1.4)#import #import //导入 - "视频流"@interface MCViewController :
UIViewControll...
分类:
其他好文 时间:
2014-06-13 20:05:06
阅读次数:
324
在VMware里克隆出来的CentOS
Linux。。ifconfig...没有看到eth0.。然后重启网卡又报下面错误。故障现象:service network restartShutting
down loopback insterface: ...
分类:
其他好文 时间:
2014-06-13 17:35:14
阅读次数:
384
由于NSUserDefaults
不支持保存自定类,保存的对象需要实现NSCoding协议,不过自定的类型就算实现了NSCoding也不可以保存,可以通过以下方法实现://h文件#import
@interface People : NSObject@property(nonatomic,copy)...
分类:
其他好文 时间:
2014-06-13 17:17:52
阅读次数:
177
nested exception is
java.lang.IncompatibleClassChangeError: class
org.springframework.core.type.classreading.ClassMetadataReadingVisitor has
interface...
分类:
编程语言 时间:
2014-06-13 16:38:47
阅读次数:
373