KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > SOFA > Component > RegisterOperations


1 package SOFA.Component;
2
3
4 /** Register interface of the component manager. It allows registering of subcomponents
5   * and maipulating of requirments/provisions.
6   * Generated by SOFA CodeGen.
7   */

8 public interface RegisterOperations {
9       /** Register subcomponent in the component manager.
10         * @param name name of the subcomponent
11         * @param target reference to the subcomponent's component manager
12         * @exception NamingException subcomponent with given name is already registered
13         * @exception InstantiationException subcomponent cannot be registered (probably bad reference)
14         */

15   void registerSubcomponent(java.lang.String JavaDoc name, SOFA.Connector.Reference target) throws SOFA.Component.NamingException, InstantiationException JavaDoc;
16       /** Unregister subcomponent.
17         * @param name name of the subcomponent
18         * @exception NamingException no subcomponent with given name
19         */

20   void unregisterSubcomponent(java.lang.String JavaDoc name) throws SOFA.Component.NamingException;
21       /** Return reference to the provided interface.
22         * @param name name of the provision
23         * @exception NamingException no provision with given name
24         * @return SOFA reference to the provision
25         */

26   SOFA.Connector.Reference getProvisionReference(String JavaDoc name) throws NamingException;
27       /** Set reference for the requirment.
28         * @param name name of the requirment
29         * @param ref SOFA reference to another component's provision
30         * @exception NamingException no requirment with given name
31         * @exception InstantiationException reference cannot be set (probably bad reference)
32         */

33   void setRequirement(String JavaDoc name, SOFA.Connector.Reference ref) throws InstantiationException JavaDoc, NamingException;
34       /** Connect component subsumtions.
35         * @exception NamingException error in the names of the requirments
36         * @exception InstantiationException subsumption cannot be connected
37         */

38   void connectSubsumable() throws NamingException, InstantiationException JavaDoc;
39 }
40
Popular Tags