代码搜索:singleton
找到约 4,696 项符合「singleton」的源代码
代码结果 4,696
www.eeworm.com/read/373842/2757493
java testb.java
/**
* Test for our Singleton registry
*/
public class TestB {
public static void main(String[] args) {
// First we get a instance from SingletonB
SingletonB instance1 = S
www.eeworm.com/read/153151/5653202
java mailserver.java
package com.javapatterns.singleton.mxrecord1;
public class MailServer
{
private int priority;
private String server;
public void setPriority(int priority)
{
this.priority = priority;
www.eeworm.com/read/474204/6816557
m pport.m
function varargout = PPort(varargin)
% PPORT M-file for PPort.fig
% PPORT, by itself, creates a new PPORT or raises the existing
% singleton*.
%
% H = PPORT returns the handle to a new
www.eeworm.com/read/293471/8293766
m yanxing.m
function varargout = yanxing_20042546(varargin)
%YANXING M-file for yanxing.fig
% YANXING, by itself, creates a create YANXING or raises the existing
% singleton*.
%
% H = YANXING retur
www.eeworm.com/read/414223/11124221
java connect.java
package DataBaseConnection;
import java.sql.*;
public class Connect {
private static Connection con = null; //singleton pattern unique instance.
public Connect(){
// Exists only to def
www.eeworm.com/read/334652/12582194
java testb.java
/**
* Test for our Singleton registry
*/
public class TestB {
public static void main(String[] args) {
// First we get a instance from SingletonB
SingletonB instance1 = S
www.eeworm.com/read/110378/15535282
java testb.java
/**
* Test for our Singleton registry
*/
public class TestB {
public static void main(String[] args) {
// First we get a instance from SingletonB
SingletonB instance1 = S
www.eeworm.com/read/101292/15838630
java testb.java
/**
* Test for our Singleton registry
*/
public class TestB {
public static void main(String[] args) {
// First we get a instance from SingletonB
SingletonB instance1 = S