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(java.lang.String name, GraphModel graph)
          Loads a component (and all its sub components) from this repository.
 java.lang.String storeComponent(Component component, GraphModel graph, java.lang.Object hints)
          Stores a component (and all its sub components) into this repository.
 

Method Detail

loadComponent

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

Parameters:
name - the name of the component to be loaded.
graph - an optional graph model.
Returns:
the loaded component.
Throws:
java.lang.Exception - if the component cannot loaded.

storeComponent

public java.lang.String storeComponent(Component component,
                                       GraphModel graph,
                                       java.lang.Object hints)
                                throws java.lang.Exception
Stores a component (and all its sub components) into this repository.

Parameters:
component - the component to be stored.
graph - an optional graph model.
hints - options.
Returns:
the name of the component that has been stored.
Throws:
java.lang.Exception - if the component cannot be stored.