代码搜索:singleton

找到约 4,696 项符合「singleton」的源代码

代码结果 4,696
www.eeworm.com/read/433911/1880194

py _warning_handler.py

""" Implements a warning handler base class and a simple handler that simply outputs warnings to stderr. """ import _singleton # Constants STDERR = 1 MAILER = 2 from sys import stderr
www.eeworm.com/read/429836/1945385

java jtsingleton.java

package Jt; /** * Jt Implementation of the Singleton pattern. */ public class JtSingleton extends JtObject { public static final String JtCLASS_NAME = JtSingleton.class.getNam
www.eeworm.com/read/428780/1954277

m about.m

function varargout = about(varargin) % ABOUT M-file for about.fig % ABOUT, by itself, creates a new ABOUT or raises the existing % singleton*. % % H = ABOUT returns the handle to a
www.eeworm.com/read/415068/2138230

h testregistry.h

#ifndef TESTREGISTRY_H #define TESTREGISTRY_H // TestRegistry is a primitive singleton which collects all of the // tests in a system and allows them to be executed. To see how // tests are a
www.eeworm.com/read/397826/2399838

java mailserver.java

package com.javapatterns.singleton.mxrecord; public class MailServer { private int priority; private String server; public void setPriority(int priority) { this.priority = priority;
www.eeworm.com/read/397826/2399843

java lazysingleton1.java

package com.javapatterns.singleton.answers; /** * Only once instance of the class may be created during the * execution of any given program. Instances of this class should * be aquired thr
www.eeworm.com/read/397826/2399847

java eagersingleton.java

package com.javapatterns.singleton.demos; /** * Only once instance of the class may be created during the execution of any given program. Instances of this class should * be aquired through the
www.eeworm.com/read/397826/2399848

java objectkeeper.java

package com.javapatterns.singleton.demos; import java.util.Vector; /** * This class keeps your objects from garbage collected */ public class ObjectKeeper extends Thread {
www.eeworm.com/read/397826/2399850

java regsingletontest.java

package com.javapatterns.singleton.demos; public class RegSingletonTest { public static void main(String[] args) { //(1) Test eager //System.out.println( EagerSinglet
www.eeworm.com/read/397826/2399851

java lazysingleton.java

package com.javapatterns.singleton.demos; /** * Only once instance of the class may be created during the * execution of any given program. Instances of this class should * be aquired through