Previous Managing Java Objects Next

Describing the Java Object in XML

An XML file must be created for each Java Object and placed in the <INSTALL>/xml/templates/objects directory (where <INSTALL> is the OpenFusion installation directory). This file should be given the name of the Java Object. For example:

<INSTALL>/xml/templates/objects/MyObject.xml

The presence of this file makes the Java Object available for adding to the Object Hierarchy.

See XML Configuration Files for more of the XML files used by OpenFusion.

The Java Object definition file must conform to the DTD specified in <INSTALL>/xml/schema/JavaObject.dtd.

The following example illustrates the MyObject.xml file for the MyObject Java Object:

 <?xml version="1.0" encoding="UTF-8">
 <!DOCTYPE JavaObject SYSTEM "file://PrismTech/OpenFusion/xml/schema/JavaObject.dtd">
 <JavaObject>
   <Name>
     My Object
   </Name>
   <ClassName>
     user.path.MyObjectImpl
   </ClassName>
   <Browser> 
     <BrowserName>
       My Object Manager
     </BrowserName>
     <BrowserClassName>
       user.path.browser.MyObjectBrowser
     </BrowserClassName> 
   </Browser>
 </JavaObject>

Name - The name of the Java Object as it will appear in the menu of available objects in the Administration Manager (this is illustrated in Adding a Java Object).

ClassName - The name of the class which is actually executed.

BrowserName - The name of the GUI browser which will be used to manage and configure the Java Object. This is the name which will be displayed on screen in the Administration Manager (optional).

BrowserClassName - The class name of the GUI browser used to manage and configure the Java Object (optional).



Previous Managing Java Objects Next