org.objectweb.proactive.core.component.adl
Class Registry

java.lang.Object
  extended byorg.objectweb.proactive.core.component.adl.Registry

public class Registry
extends java.lang.Object

This class is a static registry used for storing component instances according to their name.

Author:
Matthieu Morel

Method Summary
 void addComponent(Component component)
          see @link org.objectweb.fractal.adl.RegistryManager#addComponent(org.objectweb.fractal.api.Component)
 void clear()
          empties the registry
 Component getComponent(java.lang.String name)
          see @link org.objectweb.fractal.adl.RegistryManager#getComponent(java.lang.String)
static Registry instance()
          Returns a single instance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

instance

public static Registry instance()
Returns a single instance

Returns:
the unique instance in the vm

addComponent

public void addComponent(Component component)
                  throws org.objectweb.fractal.adl.ADLException
see @link org.objectweb.fractal.adl.RegistryManager#addComponent(org.objectweb.fractal.api.Component)

Throws:
org.objectweb.fractal.adl.ADLException

getComponent

public Component getComponent(java.lang.String name)
see @link org.objectweb.fractal.adl.RegistryManager#getComponent(java.lang.String)


clear

public void clear()
empties the registry



Copyright ? October 2004 INRIA All Rights Reserved.