mx4j.loading

Class MLetTag


public class MLetTag
extends java.lang.Object

Represents an MLET tag, as documented in the JMX specification.
Version:
$Revision: 1.6 $

Method Summary

URL
createArchiveURL(URL codebase, String archive)
Returns the URL for the given archive file name using the provided URL as a codebase, or null if the URL cannot be created.
String
getArchive()
Object[]
getArguments()
String
getCode()
String
getCodeBase()
String
getObject()
javax.management.ObjectName
getObjectName()
String[]
getSignature()
String
getVersion()
URL
normalizeCodeBase(URL mletFileURL)
Normalizes the codebase held by this MLetTag (specified in the MLet file) using the URL of the MLet file as default.
String[]
parseArchive()
Returns the jars file names specified in the ARCHIVE attribute of the MLet tag.

Method Details

createArchiveURL

public URL createArchiveURL(URL codebase,
                            String archive)
Returns the URL for the given archive file name using the provided URL as a codebase, or null if the URL cannot be created.

getArchive

public String getArchive()

getArguments

public Object[] getArguments()

getCode

public String getCode()

getCodeBase

public String getCodeBase()

getObject

public String getObject()

getObjectName

public javax.management.ObjectName getObjectName()

getSignature

public String[] getSignature()

getVersion

public String getVersion()

normalizeCodeBase

public URL normalizeCodeBase(URL mletFileURL)
Normalizes the codebase held by this MLetTag (specified in the MLet file) using the URL of the MLet file as default. This means that if the codebase in the MLet file is not provided or it is relative, then the URL of the MLet file will be taken as base for computing the normalized codebase; otherwise, if a full URL has been specified as codebase in the MLet file, that URL is taken and the URL of the MLet file is discarded.
Parameters:
mletFileURL - The URL of the MLet file
Returns:
The normalized codebase

parseArchive

public String[] parseArchive()
Returns the jars file names specified in the ARCHIVE attribute of the MLet tag.

Copyright © 2001-2005 The MX4J Contributors. All Rights Reserved.