上一页 1 ··· 56 57 58 59 60 61 62 63 64 ··· 92 下一页
闭包的基本概念闭包是可以包含自由(未绑定)变量的代码块;这些变量不是在这个代码块或者任何全局上下文中定义的,而是在定义代码块的环境中定义。“闭包” 一词来源于以下两者的结合:要执行的代码块(由于自由变量的存在,相关变量引用没有释放)和为自由变量提供绑定的计算环境(作用域)。在 Scheme、Common Lisp、Smalltalk、Groovy、JavaScript、Ruby 和 Python 等语言中都能找到对闭包不同程度的支持。闭包的价值闭包的价值在于可以作为函数对象 或者匿名函数,对于类型系统而言这就意味着不仅要表示数据还要表示代码。支持闭包的多数语言都将函数作为第一级对象,就是说这些 Read More
posted @ 2011-04-15 17:11 庚武 Views(236) Comments(0) Diggs(0) Edit
文件下载: http://files.cnblogs.com/wucg/spring_aop_excise.zip Read More
posted @ 2011-04-12 19:25 庚武 Views(943) Comments(0) Diggs(0) Edit
//MyBean.javapackage test.aop;public class MyBean { private String name; public String getName() { return name; } public void setName(String name) { this.name = name; } }//MyMethodBeforeAdvice.javapackage test.aop;import java.lang.reflect.Method;import org.springframework.aop.MethodBeforeAdvice;publ Read More
posted @ 2011-04-09 19:57 庚武 Views(331) Comments(0) Diggs(0) Edit
<?xml version="1.0" encoding="UTF-8"?><project basedir="." default="usage" name="TestPrjAndBuild"> <!-- 定义目录变量 --> <property name="project-name" value="TestPrjAndBuild" /> <!-- ====此处需要修改====.jar文件名 --&g Read More
posted @ 2011-04-01 20:04 庚武 Views(325) Comments(0) Diggs(0) Edit
AOP concepts Let us begin by defining some central AOP concepts and terminology. These terms are not Spring-specific... unfortunately, AOP terminology Read More
posted @ 2011-04-01 14:52 庚武 Views(334) Comments(0) Diggs(0) Edit
Allows explicit values to be inserted into the identity column of a table.Syntax:SET IDENTITY_INSERT [ database_name . [ schema_name ] . ] table { ON | OFF }e.g.:USE AdventureWorks;GO-- Create tool table.CREATE TABLE dbo.Tool( ID INT IDENTITY NOT NULL PRIMARY KEY, Name VARCHAR(40) NOT NULL)GO-- Inse Read More
posted @ 2011-04-01 10:41 庚武 Views(503) Comments(0) Diggs(0) Edit
from:http://msdn.microsoft.com/en-us/library/3dasc8as(VS.80).aspxusing System;using System.Threading;public class Fibonacci{ public Fibonacci(int n, ManualResetEvent doneEvent) { _n = n; _doneEvent = doneEvent; } // Wrapper method for use with thread pool. public void ThreadPoolCallback(Object threa Read More
posted @ 2011-03-31 17:43 庚武 Views(667) Comments(0) Diggs(0) Edit
该文被密码保护。 Read More
posted @ 2011-03-31 17:15 庚武 Views(8) Comments(0) Diggs(0) Edit
该文被密码保护。 Read More
posted @ 2011-03-31 16:51 庚武 Views(1) Comments(0) Diggs(0) Edit
Module SummaryLet's now examine the functionality that Spring offers in more detail. It is divided into a number of separate modules.There are two main categories of functionality in Spring:An IoC container and AOP framework, which handle configuration and application of services to objects.A se Read More
posted @ 2011-03-30 16:27 庚武 Views(254) Comments(0) Diggs(0) Edit
上一页 1 ··· 56 57 58 59 60 61 62 63 64 ··· 92 下一页