fr.paris5.shaman.system
Class SystemDirectory.ServerKey

java.lang.Object
  |
  +--fr.paris5.shaman.system.SystemDirectory.ServerKey
Enclosing class:
SystemDirectory

public static class SystemDirectory.ServerKey
extends java.lang.Object

Enumeration of Shaman servers. A class has been defined instead of some String constants for taking advantage of typing. hashCode() method has been redefined, because the "unique-instance" static constants may not be so unique with class reloading (e.g. JUnit).


Field Summary
static SystemDirectory.ServerKey INSIGHT_SERVER_KEY
           
static SystemDirectory.ServerKey LEGEND_SERVER_KEY
           
static SystemDirectory.ServerKey SPIRIT_SERVER_KEY
           
 
Method Summary
 boolean equals(java.lang.Object obj)
          Needs to override : if compared with an instance whose class was instantiated from another ClassLoader, singleton constants may not be equal anymore.
static SystemDirectory.ServerKey get(java.lang.String name)
           
 java.lang.String getName()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SPIRIT_SERVER_KEY

public static final SystemDirectory.ServerKey SPIRIT_SERVER_KEY

LEGEND_SERVER_KEY

public static final SystemDirectory.ServerKey LEGEND_SERVER_KEY

INSIGHT_SERVER_KEY

public static final SystemDirectory.ServerKey INSIGHT_SERVER_KEY
Method Detail

getName

public java.lang.String getName()

equals

public boolean equals(java.lang.Object obj)
Needs to override : if compared with an instance whose class was instantiated from another ClassLoader, singleton constants may not be equal anymore.
Overrides:
equals in class java.lang.Object
Parameters:
obj -  
Returns:
 

get

public static SystemDirectory.ServerKey get(java.lang.String name)


Copyright © 2002 Laurent Caillette and l'Université René Descartes, Paris 5. All rights reserved.