Adobe 38000382 JRun Guide - Page 112
Strategies, Comments, Finding metadata classes
UPC - 718659575946
View all Adobe 38000382 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 112 highlights
Strategies This section provides some strategies to use when working with the XML metadata classes. Comments You cannot add comments to XML files using the XML metadata tools. However, the metadata methods preserve existing comments in the XML files. Finding metadata classes The metadata classes that you use to work with the XML files do not use a convention for naming. So you must find the name-appropriate class to instantiate. To find the appropriate metadata classes, use the JRun API Javadocs. The following table describes how common XML elements map to the JRun metadata objects: XML file web.xml jrun.xml application.xml XML element web-app servlet listener jrun-server service attribute application module Metadata object jrun.servlet.metadata.WebAppMetaData jrun.servlet.metadata.ServletMetaData jrun.servlet.metadata.ListenerMetaData jrunx.server.metadata.ServerMetaData jrunx.kernel.metadata.ServiceMetaData jrunx.kernel.metadata.AttributeMetaData jrun.ea.metadata.ApplicationMetaData jrun.ea.metadata.ModuleMetaData With the following subclasses: • ConnectorModuleMetaData • EJBModuleMetaData • JavaModuleMetaData • WebModuleMetaData For each subelement of the XML file, you must find the associated metadata object. For example, for the listener element in the web.xml file, the metadata object is ListenerMetaData. 98 Chapter 9 Editing XML Files