Understanding The Xml Metadata Classes; Strategies; Comments; Finding Metadata Classes - Adobe 38000382 - Macromedia JRun - Mac Manual

Jrun sdk guide
Table of Contents

Advertisement

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
For each subelement of the XML file, you must find the associated metadata object. For
example, for the
ListenerMetaData
98
Chapter 9 Editing XML Files
XML element
Metadata object
web-app
jrun.servlet.metadata.WebAppMetaData
servlet
jrun.servlet.metadata.ServletMetaData
listener
jrun.servlet.metadata.ListenerMetaData
jrun-server
jrunx.server.metadata.ServerMetaData
service
jrunx.kernel.metadata.ServiceMetaData
attribute
jrunx.kernel.metadata.AttributeMetaData
application
jrun.ea.metadata.ApplicationMetaData
module
jrun.ea.metadata.ModuleMetaData
With the following subclasses:
element in the web.xml file, the metadata object is
listener
.
ConnectorModuleMetaData
EJBModuleMetaData
JavaModuleMetaData
WebModuleMetaData

Advertisement

Table of Contents
loading

This manual is also suitable for:

Macromedia jrun 4

Table of Contents