Singleton.java.svn-base
资源名称:cindyblog.rar [点击查看]
上传用户:cdpainuo
上传日期:2022-07-12
资源大小:5257k
文件大小:0k
源码类别:
Jsp/Servlet
开发平台:
Java
- package com.appspot.cindyblog.util;
- public class Singleton {
- protected Singleton() {
- // Exists only to thwart instantiation.
- }
- public static synchronized Object getInstance(String classname) {
- return SingletonRegistry.REGISTRY.getInstance(classname);
- }
- }