代码搜索:singleton
找到约 4,696 项符合「singleton」的源代码
代码结果 4,696
www.eeworm.com/read/389759/2538131
rb gem_plugin.rb
require 'singleton'
require 'rubygems'
# Implements a dynamic plugin loading, configuration, and discovery system
# based on RubyGems and a simple additional name space that looks like a URI.
#
# A p
www.eeworm.com/read/373842/2757496
java subsingletonb.java
/**
* A real Singleton we want to have
*/
public class SubSingletonB extends SingletonB {
public static boolean instanceFlag = false; //true if 1 instance
//private int i = 0;
www.eeworm.com/read/373842/2757497
java singletona.java
/**
* A Singleton , we can only create one instance
*/
public class SingletonA {
public static boolean instanceFlag = false; //true if 1 instance
//private SingletonA instance;
p
www.eeworm.com/read/362150/2936722
80e576e3bd44001c1c4ebd3c430ebc97
scope测试
* singleton 每次调用getBean()时,只返回一个实例
* prototype, 每次调用getBean()时,返回新的实例
www.eeworm.com/read/358155/2999378
java staticprint.java
final class Spooler
{
//a static class implementation of Singleton pattern
static public void print(String s)
{
System.out.println(s);
}
}
//==============================
public class s
www.eeworm.com/read/358155/2999380
java staticspool.java
final class Spooler
{
//a static class implementation of Singleton pattern
static public void print(String s)
{
System.out.println(s);
}
}
//==============================
public class s
www.eeworm.com/read/153151/5653201
java client.java
package com.javapatterns.singleton.mxrecord1;
public class Client
{
/**
* @directed
*/
private static MXList mxl;
public static void main(String[] args)
thro
www.eeworm.com/read/153151/5653206
java regsingleton.java
package com.javapatterns.singleton.demos;
import java.util.HashMap;
public class RegSingleton {
protected RegSingleton() {}
static public RegSingleton getInstance(String name)
www.eeworm.com/read/475517/6790732
asv paramset.asv
function varargout = ParamSet(varargin)
% PARAMSET M-file for ParamSet.fig
% PARAMSET, by itself, creates a new PARAMSET or raises the existing
% singleton*.
%
% H = PARAMSET retur
www.eeworm.com/read/475517/6790733
m paramset.m
function varargout = ParamSet(varargin)
% PARAMSET M-file for ParamSet.fig
% PARAMSET, by itself, creates a new PARAMSET or raises the existing
% singleton*.
%
% H = PARAMSET retur