net.sf.sail.core.beans.assembly
Class PodRegistry

java.lang.Object
  extended by net.sf.sail.core.beans.assembly.PodRegistry
All Implemented Interfaces:
java.beans.PropertyChangeListener, java.lang.Cloneable, java.util.EventListener

public class PodRegistry
extends java.lang.Object
implements java.beans.PropertyChangeListener, java.lang.Cloneable

Maintains map of pod ids to pod objects

Author:
turadg AUDIT07-

Method Summary
 java.lang.Object clone()
           
static PodRegistry getDefaultRegistry()
           
 Pod getPod(PodUuid key)
           
 void propertyChange(java.beans.PropertyChangeEvent evt)
          Listen when the pod's podId changes
 void register(Pod pod)
          Mapping the podId to the a pod and listening for changes in the podId
 void reregister(Pod pod)
          Remove the pod from its old pod id key and put it in with its new one.
 java.lang.String toString()
           
 boolean unregister(Pod pod)
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getDefaultRegistry

public static PodRegistry getDefaultRegistry()
Returns:
the default PodRegistry for this JVM

register

public void register(Pod pod)
Mapping the podId to the a pod and listening for changes in the podId

Parameters:
pod -

getPod

public Pod getPod(PodUuid key)

reregister

public void reregister(Pod pod)
Remove the pod from its old pod id key and put it in with its new one.

Parameters:
pod -

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

propertyChange

public void propertyChange(java.beans.PropertyChangeEvent evt)
Listen when the pod's podId changes

Specified by:
propertyChange in interface java.beans.PropertyChangeListener
Parameters:
evt -

unregister

public boolean unregister(Pod pod)
Parameters:
pod -
Returns:
true iff the pod was in the registry

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Overrides:
clone in class java.lang.Object
Throws:
java.lang.CloneNotSupportedException


Copyright © 2004-2008 TELS Center. All Rights Reserved.