51CTO博客开发
A Service Locator is a common design pattern that allows decoupling clients of services (described by a public interface) from the concrete class implementing those services. Martin Fowler has a
转载自:http://www.rainsts.net/article.asp?id=78 在程序设计中我们经常会进行一些全局缓存设计,诸如使用静态或者全局根字段来引用某个对象,以便一次创建多次使用。 如: class BigData { } class&nb
Copyright © 2005-2024 51CTO.COM 版权所有 京ICP证060544号