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

java.lang.Object
  extended byorg.objectweb.proactive.core.component.adl.RegistryManagerImpl
All Implemented Interfaces:
RegistryManager

public class RegistryManagerImpl
extends java.lang.Object
implements RegistryManager

The implementation of a primitive component proposing the server interface RegistryManager. It offers facilities for accessing a shared static registry for storing component instances according to their name.

Author:
Matthieu Morel

Constructor Summary
RegistryManagerImpl()
           
 
Method Summary
 void addComponent(Component component)
          Adds a component instance.
 void clear()
          Empties the registry
 Component getComponent(java.lang.String name)
          Retreives an instance of a component according to the name (from its NameController controller)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RegistryManagerImpl

public RegistryManagerImpl()
Method Detail

addComponent

public void addComponent(Component component)
                  throws org.objectweb.fractal.adl.ADLException
Description copied from interface: RegistryManager
Adds a component instance. (The name is retreived automatically from the NameController)

Specified by:
addComponent in interface RegistryManager
Parameters:
component - the instance of the component
Throws:
org.objectweb.fractal.adl.ADLException

getComponent

public Component getComponent(java.lang.String name)
Description copied from interface: RegistryManager
Retreives an instance of a component according to the name (from its NameController controller)

Specified by:
getComponent in interface RegistryManager
Parameters:
name - the name of the instance of the component
Returns:
the selected component

clear

public void clear()
Description copied from interface: RegistryManager
Empties the registry

Specified by:
clear in interface RegistryManager


Copyright 2001-2005 INRIA All Rights Reserved.