org.objectweb.fractal.gui.repository.api
Interface Repository

All Known Implementing Classes:
BasicRepository

public interface Repository

A repository of component configuration definitions.


Method Summary
 Component loadComponent(String name)
          Loads a component (and all its sub components) from this repository.
 String storeComponent(Component component)
          Stores a component (and all its sub components) into this repository.
 

Method Detail

loadComponent

public Component loadComponent(String name)
                        throws Exception
Loads a component (and all its sub components) from this repository.

Parameters:
name - the name of the component to be loaded.
Returns:
the loaded component.
Throws:
Exception - if the component cannot loaded.

storeComponent

public String storeComponent(Component component)
                      throws Exception
Stores a component (and all its sub components) into this repository.

Parameters:
component - the component to be stored.
Returns:
the name of the component that has been stored.
Throws:
Exception - if the component cannot be stored.