Changes between Version 1 and Version 2 of controller-gui

Show
Ignore:
Timestamp:
03/13/11 13:47:58 (8 years ago)
Author:
ibaldin (IP: 108.65.61.102)
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • controller-gui

    v1 v2  
    77== Connecting controller to the GUI == 
    88 
    9  * In the factory for the controller, you need to specify the  portal 
    10 plugin class that goes with it. The portal plugin class has a method 
    11 getMainTemplate() that returns the path to the controller's main web 
    12 template. In the context of the interdomain controller it is 
    13 /interdomain/main.xml. This is so because of the way we package the 
    14 controller, evertything under resources/web is copied in the package 
    15 and then put under the webapp dir in tomcat. So if you make a copy of 
    16 these files under resources/web/xmlrpc/, your portal plugin should 
    17 return /xmlrpc/main.vm.  (See InterDomainControllerPortalPlugin.java 
    18 and InterDomainControllerFactory.java). 
     9 * In the factory for the controller, you need to specify the  portal plugin class that goes with it. The portal plugin class has a method getMainTemplate() that returns the path to the controller's main web template. In the context of the interdomain controller it is /interdomain/main.xml. This is so because of the way we package the controller, evertything under resources/web is copied in the package and then put under the webapp dir in tomcat. So if you make a copy of these files under resources/web/xmlrpc/, your portal plugin should return /xmlrpc/main.vm.  (See !InterDomainControllerPortalPlugin.java and !InterDomainControllerFactory.java). 
    1910 
    20  * In addition to the portal plugin class you will need to define a 
    21 ManagerObject, a proxy interface to the manager object and an 
    22 implementation of this interface using local communication. The 
    23 interdomain controller does all this. 
     11 * In addition to the portal plugin class you will need to define a ManagerObject, a proxy interface to the manager object and an implementation of this interface using local communication. The interdomain controller does all this. 
    2412 
    25  * Once these are in place, the templates will be able to acquire the 
    26 proxy object and can talk with the manager object. 
     13 * Once these are in place, the templates will be able to acquire the proxy object and can talk with the manager object. 
    2714 
    2815InterdomainController is a good source of examples on how it is done.