|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.wilmascope.patterns.Singleton
public class Singleton
Use Singleton.instance(String) to access a given instance by name.
Constructor Summary | |
---|---|
protected |
Singleton()
The constructor could be made private to prevent others from instatiating this class. |
Method Summary | |
---|---|
static Singleton |
instance(java.lang.String byname)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected Singleton()
Method Detail |
---|
public static Singleton instance(java.lang.String byname)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |