|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.objectweb.fractal.gui.repository.lib.BasicRepository
Basic implementation of the Repository interface. This implementation
supposes that the component definitions are stored in the repository as
Fractal ADL definitions, in XML form.
| Field Summary | |
static String |
FACTORY_BINDING
A mandatory client interface bound to a factory. |
static String |
STORAGE_BINDING
A mandatory client interface bound to a storage. |
| Constructor Summary | |
BasicRepository()
|
|
| Method Summary | |
void |
bindFc(String clientItfName,
Object serverItf)
Binds the client interface whose name is given to a server interface. |
String[] |
listFc()
Returns the names of the client interfaces of the component to which this interface belongs. |
Component |
loadComponent(String name)
Loads a component (and all its sub components) from this repository. |
Object |
lookupFc(String clientItfName)
Returns the interface to which the given client interface is bound. |
String |
storeComponent(Component component)
Stores a component (and all its sub components) into this repository. |
void |
unbindFc(String clientItfName)
Unbinds the given client interface. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final String STORAGE_BINDING
storage. This is
the storage from which this repository loads the component definitions.
public static final String FACTORY_BINDING
factory. This
factory is used to create components from the component definitions stored
in the storage.
| Constructor Detail |
public BasicRepository()
| Method Detail |
public String[] listFc()
BindingController
listFc in interface BindingControllerpublic Object lookupFc(String clientItfName)
BindingControllerbindFc).
lookupFc in interface BindingControllerclientItfName - the name of a client interface of the component to
which this interface belongs.
public void bindFc(String clientItfName,
Object serverItf)
BindingController
bindFc in interface BindingControllerclientItfName - the name of a client interface of the component to
which this interface belongs.serverItf - a server interface.public void unbindFc(String clientItfName)
BindingController
unbindFc in interface BindingControllerclientItfName - the name of a client interface of the component to
which this interface belongs.
public Component loadComponent(String name)
throws Exception
Repository
loadComponent in interface Repositoryname - the name of the component to be loaded.
Exception - if the component cannot loaded.
public String storeComponent(Component component)
throws Exception
Repository
storeComponent in interface Repositorycomponent - the component to be stored.
Exception - if the component cannot be stored.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||