📄 mlet.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><!--NewPage--><HTML><HEAD><!-- Generated by javadoc (build 1.4.2_02) on Thu Nov 13 17:20:54 PST 2003 --><TITLE>MLet (Java 2 Platform Ent. Ed. v1.4)</TITLE><META NAME="keywords" CONTENT="javax.management.loading.MLet class"><LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style"><SCRIPT type="text/javascript">function windowTitle(){ parent.document.title="MLet (Java 2 Platform Ent. Ed. v1.4)";}</SCRIPT></HEAD><BODY BGCOLOR="white" onload="windowTitle();"><!-- ========= START OF TOP NAVBAR ======= --><A NAME="navbar_top"><!-- --></A><A HREF="#skip-navbar_top" title="Skip navigation links"></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""><TR><TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_top_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM><b>Java<sup><font size=-2>TM</font></sup> 2 Platform<br>Ent. Ed. v1.4</b></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../javax/management/loading/DefaultLoaderRepository.html" title="class in javax.management.loading"><B>PREV CLASS</B></A> <A HREF="../../../javax/management/loading/PrivateMLet.html" title="class in javax.management.loading"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../index.html" target="_top"><B>FRAMES</B></A> <A HREF="MLet.html" target="_top"><B>NO FRAMES</B></A> <SCRIPT type="text/javascript"> <!-- if(window==top) { document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>'); } //--></SCRIPT><NOSCRIPT> <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A></NOSCRIPT></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><A NAME="skip-navbar_top"></A><!-- ========= END OF TOP NAVBAR ========= --><HR><!-- ======== START OF CLASS DATA ======== --><H2><FONT SIZE="-1">javax.management.loading</FONT><BR>Class MLet</H2><PRE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">java.lang.Object</A> <IMG SRC="../../../resources/inherit.gif" ALT="extended by"><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/ClassLoader.html" title="class or interface in java.lang">java.lang.ClassLoader</A> <IMG SRC="../../../resources/inherit.gif" ALT="extended by"><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/security/SecureClassLoader.html" title="class or interface in java.security">java.security.SecureClassLoader</A> <IMG SRC="../../../resources/inherit.gif" ALT="extended by"><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/net/URLClassLoader.html" title="class or interface in java.net">java.net.URLClassLoader</A> <IMG SRC="../../../resources/inherit.gif" ALT="extended by"><B>javax.management.loading.MLet</B></PRE><DL><DT><B>All Implemented Interfaces:</B> <DD><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/Externalizable.html" title="class or interface in java.io">Externalizable</A>, <A HREF="../../../javax/management/MBeanRegistration.html" title="interface in javax.management">MBeanRegistration</A>, <A HREF="../../../javax/management/loading/MLetMBean.html" title="interface in javax.management.loading">MLetMBean</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/Serializable.html" title="class or interface in java.io">Serializable</A></DD></DL><DL><DT><B>Direct Known Subclasses:</B> <DD><A HREF="../../../javax/management/loading/PrivateMLet.html" title="class in javax.management.loading">PrivateMLet</A></DD></DL><HR><DL><DT>public class <B>MLet</B><DT>extends <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/net/URLClassLoader.html" title="class or interface in java.net">URLClassLoader</A><DT>implements <A HREF="../../../javax/management/loading/MLetMBean.html" title="interface in javax.management.loading">MLetMBean</A>, <A HREF="../../../javax/management/MBeanRegistration.html" title="interface in javax.management">MBeanRegistration</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/Externalizable.html" title="class or interface in java.io">Externalizable</A></DL><P>Allows you to instantiate and register one or several MBeans in the MBean server coming from a remote URL. M-let is a shortcut for management applet. The m-let service does this by loading an m-let text file, which specifies information on the MBeans to be obtained. The information on each MBean is specified in a single instance of a tag, called the MLET tag. The location of the m-let text file is specified by a URL. <p> The <CODE>MLET</CODE> tag has the following syntax: <p> <<CODE>MLET</CODE><BR> <CODE>CODE = </CODE><VAR>class</VAR><CODE> | OBJECT = </CODE><VAR>serfile</VAR><BR> <CODE>ARCHIVE = "</CODE><VAR>archiveList</VAR><CODE>"</CODE><BR> <CODE>[CODEBASE = </CODE><VAR>codebaseURL</VAR><CODE>]</CODE><BR> <CODE>[NAME = </CODE><VAR>mbeanname</VAR><CODE>]</CODE><BR> <CODE>[VERSION = </CODE><VAR>version</VAR><CODE>]</CODE><BR> ><BR> <CODE>[</CODE><VAR>arglist</VAR><CODE>]</CODE><BR> <<CODE>/MLET</CODE>> <p> where: <DL> <DT><CODE>CODE = </CODE><VAR>class</VAR></DT> <DD> This attribute specifies the full Java class name, including package name, of the MBean to be obtained. The compiled <CODE>.class</CODE> file of the MBean must be contained in one of the <CODE>.jar</CODE> files specified by the <CODE>ARCHIVE</CODE> attribute. Either <CODE>CODE</CODE> or <CODE>OBJECT</CODE> must be present. </DD> <DT><CODE>OBJECT = </CODE><VAR>serfile</VAR></DT> <DD> This attribute specifies the <CODE>.ser</CODE> file that contains a serialized representation of the MBean to be obtained. This file must be contained in one of the <CODE>.jar</CODE> files specified by the <CODE>ARCHIVE</CODE> attribute. If the <CODE>.jar</CODE> file contains a directory hierarchy, specify the path of the file within this hierarchy. Otherwise a match will not be found. Either <CODE>CODE</CODE> or <CODE>OBJECT</CODE> must be present. </DD> <DT><CODE>ARCHIVE = "</CODE><VAR>archiveList</VAR><CODE>"</CODE></DT> <DD> This mandatory attribute specifies one or more <CODE>.jar</CODE> files containing MBeans or other resources used by the MBean to be obtained. One of the <CODE>.jar</CODE> files must contain the file specified by the <CODE>CODE</CODE> or <CODE>OBJECT</CODE> attribute. If archivelist contains more than one file: <UL> <LI>Each file must be separated from the one that follows it by a comma (,). <LI><VAR>archivelist</VAR> must be enclosed in double quote marks. </UL> All <CODE>.jar</CODE> files in <VAR>archivelist</VAR> must be stored in the directory specified by the code base URL. </DD> <DT><CODE>CODEBASE = </CODE><VAR>codebaseURL</VAR></DT> <DD> This optional attribute specifies the code base URL of the MBean to be obtained. It identifies the directory that contains the <CODE>.jar</CODE> files specified by the <CODE>ARCHIVE</CODE> attribute. Specify this attribute only if the <CODE>.jar</CODE> files are not in the same directory as the m-let text file. If this attribute is not specified, the base URL of the m-let text file is used. </DD> <DT><CODE>NAME = </CODE><VAR>mbeanname</VAR></DT> <DD> This optional attribute specifies the object name to be assigned to the MBean instance when the m-let service registers it. If <VAR>mbeanname</VAR> starts with the colon character (:), the domain part of the object name is the domain of the agent. The m-let service invokes the <CODE>getDomain()</CODE> method of the Framework class to obtain this information. </DD> <DT><CODE>VERSION = </CODE><VAR>version</VAR></DT> <DD> This optional attribute specifies the version number of the MBean and associated <CODE>.jar</CODE> files to be obtained. This version number can be used to specify that the <CODE>.jar</CODE> files are loaded from the server to update those stored locally in the cache the next time the m-let text file is loaded. <VAR>version</VAR> must be a series of non-negative decimal integers each separated by a period from the one that precedes it. </DD> <DT><VAR>arglist</VAR></DT> <DD> This optional attribute specifies a list of one or more parameters for the MBean to be instantiated. This list describes the parameters to be passed the MBean's constructor. Use the following syntax to specify each item in <VAR>arglist</VAR>:</DD> <DL> <P> <DT><<CODE>ARG TYPE=</CODE><VAR>argumentType</VAR> <CODE>VALUE=</CODE><VAR>value</VAR>></DT> <P> <DD>where:</DD> <UL> <LI><VAR>argumentType</VAR> is the type of the argument that will be passed as parameter to the MBean's constructor.</UL> </DL> <P>The arguments' type in the argument list should be a Java primitive type or a Java basic type (<CODE>java.lang.Boolean, java.lang.Byte, java.lang.Short, java.lang.Long, java.lang.Integer, java.lang.Float, java.lang.Double, java.lang.String</CODE>). </DL> When an m-let text file is loaded, an
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -