Factory pattern
Factory objects have several advantages:Separate the responsibility of complex creation into cohesive helper objects.Hide potentially complex creation logic.Allow introduction of performance-enhancing memory management strategies, such as object caching or recycling.Name:FactoryProblem:Who should be responsible for creating objects when there are special considerations, such as complex creation logic, a desire to separate the creation responsibilities for better cohesion, and so forth?Solution:
GRASP
GRASP stands for General Responsibility Assignment Software Patterns (or sometimes Principles). It is used in object oriented design, and gives guidelines for assigning responsibility to classes and objects.Examples of different patterns/principles used in GRASP are: Information Expert, Creator, Controller, Low Coupling, High Cohesion, Polymorphism, Pure Fabrication, Indirection, Protected Variations. All these patterns answer some software problem, and in almost every case these problems are co
Adapter
Adapter is something that extracted from a series of similar components.The job of adapter is to delegate to the correct implementation with a consistent interface to the components client.[@more@]Adapter
GOF
GOF: Gang of Four.中文俗称四人帮。四个人的名字是:Erich Gamma, Richard Helm, Ralph Johnson, and John Vlissides。他们在1994年发布了GOF design pattern,成为面向对象领域重要的理论和best practice。[@more@]
IE IFrame can be transparent and floating from IE5.5.
In Internet Explorer 5 and earlier, iframes could not play in the world of z-index-positioned elements. While you could position an IFRAME on a page, you could not lay content from the host document over the iframe using a greater z-index value. In Internet Explorer 5.5, this feature is now supported. Internet Explorer version 5.5 also supports transparent frames. By declaring the background of the frame's document to be transparent and having the container declare that it allows transparency, y
JavaBean
As the official definition, it's kind of reusable component that developer can visually edit some property and bind some event method at design and runtime through visible inspector.Naming convention for java bean:instance field:T propertyName;Getter:<T> getPropertyName();Setter:void setPropertyName(<T>);For boolean value instance field, the get method should be changed to:boolean isPropertyName();For the event object, all must inherit java.util.EventObject.[@more@]
Request.Redirect
This redirect will reset the all the request attributes to null, while still keep the reqeust params there.[@more@]
Eclipse 10 hotest-keys
Moving around * Ctrl+J — Incremental Search * Ctrl+Shift+T — Search a type, with search on typing. You can use only the upcase letters (e.g. type “MIL” to find MouseInputListener) * Ctrl+F6 — Switch between last used files * F3 — Open declaration * Ctrl+Alt+H — Open Call Hierarchy Editing * Ctrl+1 — Quick Fix: press while cursor is positioned at member variable, parameter, selection, warnings, errors, … * Ctrl+Space — Context Assist: press after a ., or to use macros (for, while, sysou
What's coming In Java Enterprise Edition 6
Enterprise Java Beans 3.1: EJB components can live in the web tier. Package/deploy EJB components in a .war without an ejb-jar, EJB Timer Service. Java Persistence Architecture 2.0: Expanded O/R mapping functionality, Standardized Hints and Properties, Expanded Query CapabilitiesServlets 3.0: Asynchronous Support (Comet)WebBeans: EJB 3.x technology components may be WebBeans, Decouple implementations of server and client. Java Server Faces 2.0: Allow for "zero configuration" web applic
Smart Client
When an application exhibits the following properties, it is called a smart client and has the following characteristics: Utilizes local resources (CPU, GPU, and so on) Consumes Web services Operates online/offline where appropriate Intelligent deployment/update [@more@]
Black, White and Gray Box SOA Testing Techniques & Patterns
Techniques such as Black, White and Gray Box testing applied to traditional systems map well into Web Services deployments. However, the following characteristics of a Web Services deployments introduce unique testing challenges:- Web Services are intrinsically distributed and are platform and language agnostic.-Web Services can be chained with dependencies on other 3rd party Web Services that can change without notice.-Web Services ownership is shared across various stakeholders.-Web Services c
SaaS - intro from wikipedia
Software as a Service[@more@]Software as a service (SaaS) is a software application delivery model where a software vendor develops a web-native software application and hosts and operates (either independently or through a third-party) the application for use by its customers over the Internet. Customers pay not for owning the software itself but for using it. They use it through an API accessible over the Web and often written using Web Services or REST. The term SaaS has become the industry p
MessageFormat
MessageFormat use cases[@more@]Format a {0} parameter in a string;private static final String TEST= "aab{0}ccd";MessageFormat msgFormat = new MessageFormat(TEST);args[0] = "123";String doc = msgFormat.format(args);
JSON official site
[@more@]http://www.json.org/
Javascript Lib (不断更新中)
eval(): execute JavaScript code from a string, Can execute a dynamic javascript code.[@more@]
给自己祝贺一下
我的blog在itpub又开工了!!希望能坚持写些东西。记些东西。[@more@]