All Packages Class Hierarchy This Package Previous Next Index
java.lang.Object | +----com.sun.jaw.impl.agent.services.mlet.MLet
MLET tag.
The MLET tag has the following syntax:
<MLET
CODE = class | OBJECT = serfile
ARCHIVE = "archiveList"
[CODEBASE = codebaseURL]
[NAME = mbeanname]
[PERSISTENT = true | false]
[VERSION = version]
>
[paramlist]
</MLET>
where:
CODE = class.class file of the m-bean must be contained in one of the .jar files specified by the ARCHIVE
attribute. Either CODE or OBJECT must be present.
OBJECT = serfile.ser file that contains a serialized representation of the m-bean to be obtained.
This file must be contained in one of the .jar files specified by the ARCHIVE attribute. If the .jar file contains a directory hierarchy, specify the path of the file within this hierarchy. Otherwise a match will not be found. Either CODE or OBJECT must be present.
ARCHIVE = "archiveList".jar files
containing m-beans or other resources used by
the m-bean to be obtained. One of the .jar files must contain the file specified by the CODE or OBJECT attribute.
If archivelist contains more than one file:
.jar files in archivelist must be stored in the directory specified by the code base URL.
CODEBASE = codebaseURL.jar files specified by the ARCHIVE attribute. Specify this attribute only if the .jar 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.
NAME = mbeannamegetDomain() method of the Framework class to
obtain this information.
PERSISTENT = true | falseVERSION = version.jar files to be obtained. This version number can
be used to specify that the .jar files are loaded from the
server to update those stored locally in the cache the next time the m-let
text file is loaded. version must be a series of non-negative
decimal integers each separated by a period from the one that precedes it.
initCmf method of the m-bean to be instantiated. Each
parameter in paramlist corresponds to a modification in the
modification list. Use the following syntax to specify each item in
paramlist:
PARAM NAME=propertyName VALUE=value>
The m-let service passes all the values in the modification list as
String objects. You have to ensure that the
initCmf method of the m-bean includes the code required to
cast each String object into an instance of the appropriate
type. For example, if the property is an integer, you have to cast the
String object passed by the m-let service into an
int.
Note - Multiple MLET tags with the same
code base URL share the same instance of the MLetClassLoader
class.
MLet instance initialized with attributes read
from an MLET tag in an m-let text file.
MLET tag.
CODE
attribute of the MLET tag.
.jar files specified by the ARCHIVE
attribute of the MLET tag.
NAME
attribute of the MLET tag.
MLET tag.
PERSISTENT
attribute of the MLET tag.
OBJECT
attribute of the MLET tag.
VERSION
attribute of the MLET tag.
public MLet(URL url,
Hashtable attributes)
MLet instance initialized with attributes read
from an MLET tag in an m-let text file.
MLET tag.
MLET tag.
public Hashtable getAttributes()
MLET tag.
MLET tag
and their values.
public URL getDocumentBase()
public URL getCodeBase()
public String getJarFiles()
.jar files specified by the ARCHIVE
attribute of the MLET tag.
.jar file names.
public String getCode()
CODE
attribute of the MLET tag.
CODE
attribute of the MLET tag.
public String getSerializedObject()
OBJECT
attribute of the MLET tag.
OBJECT
attribute of the MLET tag.
public String getName()
NAME
attribute of the MLET tag.
NAME
attribute of the MLET tag.
public boolean getPersistent()
PERSISTENT
attribute of the MLET tag.
PERSISTENT
attribute of the MLET tag.
public String getVersion()
VERSION
attribute of the MLET tag.
VERSION
attribute of the MLET tag.
public String getParameter(String name)
MLET tag.
MLET tag.
public static String getClassVersion()
All Packages Class Hierarchy This Package Previous Next Index