org.apache.felix.mosgi.jmx.agent.mx4j.loading
Class MLetTag

java.lang.Object
  extended by org.apache.felix.mosgi.jmx.agent.mx4j.loading.MLetTag

public class MLetTag
extends Object

Represents an MLET tag, as documented in the JMX specification.

Version:
$Revision: 1.1.1.1 $
Author:
Simone Bordet

Constructor Summary
MLetTag()
           
 
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()
           
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MLetTag

public MLetTag()
Method Detail

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.


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.


getVersion

public String getVersion()

getCodeBase

public String getCodeBase()

getArchive

public String getArchive()

getCode

public String getCode()

getObjectName

public ObjectName getObjectName()

getObject

public String getObject()

getSignature

public String[] getSignature()

getArguments

public Object[] getArguments()


Copyright © 2011 Apache Software Foundation. All Rights Reserved.