14:18 2014/5/5IOC inversion of control 控制反转
将new对象的权力由调用者转移到spring容器(即xml文件),Struts2与Spring整合(scope="prototype")由spring来维护struts的生命周期,在启动web容器时spring容...
分类:
其他好文 时间:
2014-05-23 05:56:11
阅读次数:
284
IOC:Inversion of Control
控制反转。(底层原理:反射)所谓的控制反转,就是应用本身不负责依赖对象的创建及维护,依赖对象的创建及维护是由外部容器负责,这样控制权就用应用内部转移到了外部容器,这样做的目的是为了获得更好的扩展性和良好的可维护性。DI:Dependency
Inje...
分类:
编程语言 时间:
2014-05-23 05:47:09
阅读次数:
317
monkeyrunnerThe monkeyrunner tool provides an API
for writing programs that control an Android device or emulator from outside of
Android code. With m...
分类:
其他好文 时间:
2014-05-23 05:27:27
阅读次数:
257
using System;using System.Collections.Generic;using
System.Linq;using System.Web;using System.Web.Mvc;using
System.Web.Security;namespace 验证权限.Control...
分类:
Web程序 时间:
2014-05-22 15:36:02
阅读次数:
264
#include #include const int GRID_WIDTH = 1024;const
int GRID_HEIGHT = 800;#pragma comment(lib, "osgd.lib")#pragma comment(lib,
"osgViewerd.lib")#pragm...
分类:
其他好文 时间:
2014-05-21 20:31:39
阅读次数:
555
IOC:Inversion Of
Control翻译为控制反转,我们在面向对象软件开发过程中,一个应用程序它的底层结构可能由N种不同的构件来相互协作来完成我们定义的系统的业务逻辑。哪么每一个构件可能相互独立和相互依赖,如果相互依赖的构件中的某一个构件出现异常,就会影响到整个系统的稳定运行,对象之.....
分类:
Web程序 时间:
2014-05-21 17:31:47
阅读次数:
335
介绍一个grid layout 顺序显示的代码
LayoutAnimation1.java
/*
* Copyright (C) 2007 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use th...
分类:
其他好文 时间:
2014-05-21 16:58:47
阅读次数:
214
Git 属于分布式版本控制系统( Distributed Version Control
System,简称 DVCS
)客户端并不只提取最新版本的文件快照,而是把原始的代码仓库完整地镜像下来。这么一来,任何一处协同工作用的服务器发生故障,事后都可以用任何一个镜像出来的本地仓库恢复。因为每一次的提取...
分类:
系统相关 时间:
2014-05-21 12:07:50
阅读次数:
441
之前我们已经介绍了所有的AngularJS 基础知识,下面让我们通过实例来加深记忆,体验自定义指令的乐趣。这里将展示三个实例:手风琴指令,Google Maps 指令和Wijmo Grid 指令。...
分类:
Web程序 时间:
2014-05-21 07:39:43
阅读次数:
616
1获得当前屏幕中鼠标的位置
int i = MousePosition.X;
int j = MousePosition.Y;
这是control类中的方法。
2移动鼠标
首先引入dll
[System.Runtime.InteropServices.DllImport("user32")]
private st...
分类:
其他好文 时间:
2014-05-21 07:28:51
阅读次数:
229