代码搜索:singleton
找到约 4,696 项符合「singleton」的源代码
代码结果 4,696
www.eeworm.com/read/116177/14983791
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/493048/1169631
java properties.java
package mujmail;
import javax.microedition.lcdui.AlertType;
// TODO: this class should be implement Singleton design pattern instead of static class
/**
* Holds information about mobile phone, e
www.eeworm.com/read/480485/1317651
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/470710/1455251
java threadsequence.java
package org.redsoft.forum.dao;
/**
* A singleton class that generates a unique id for threads
*
* @author Charles Huang
* @since JDK 1.4
* @version 1.0
*/
public final class ThreadSe
www.eeworm.com/read/243866/4518933
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/240529/4573121
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/213767/4912688
rb ham.rb
module ContentState
class Ham < Base
include Singleton
def enter_hook(content)
super
content[:published] = true
content[:status_confirmed] = true
end
def p
www.eeworm.com/read/213767/4912699
rb withdrawn.rb
module ContentState
class Withdrawn < Base
include Singleton
def enter_hook(content)
content[:published] = false
end
def change_published_state(content, boolean)
return
www.eeworm.com/read/334952/3360369
java testingdbconfiguration.java
package com.cognizant.food.dao.hibernate;
/**
* @author Priit
* Singleton mustrit kasutav klass andmebaasi konfiguratsiooni hoidmiseks
* testide jaoks
* */
import org.hibernate.cfg.Confi