|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--com.sun.jaw.impl.agent.services.mlet.MLet
This class represents the contents of the 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.
| Constructor Summary | |
MLet(java.net.URL url,
java.util.Hashtable attributes)
Creates an MLet instance initialized with attributes read
from an MLET tag in an m-let text file. |
|
| Method Summary | |
java.util.Hashtable |
getAttributes()
Gets the attributes of the MLET tag. |
static java.lang.String |
getClassVersion()
Gets the version of this class. |
java.lang.String |
getCode()
Gets the value of the CODE
attribute of the MLET tag. |
java.net.URL |
getCodeBase()
Gets the code base URL. |
java.net.URL |
getDocumentBase()
Gets the m-let text file's base URL. |
java.lang.String |
getJarFiles()
Gets the list of .jar files specified by the ARCHIVE
attribute of the MLET tag. |
java.lang.String |
getName()
Gets the value of the NAME
attribute of the MLET tag. |
java.lang.String |
getParameter(java.lang.String name)
Gets the value of the specified attribute of the MLET tag. |
boolean |
getPersistent()
Gets the value of the PERSISTENT
attribute of the MLET tag. |
java.lang.String |
getSerializedObject()
Gets the value of the OBJECT
attribute of the MLET tag. |
java.lang.String |
getVersion()
Gets the value of the VERSION
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 |
public MLet(java.net.URL url,
java.util.Hashtable attributes)
MLet instance initialized with attributes read
from an MLET tag in an m-let text file.url - The URL of the m-let text file containing the MLET tag.attributes - A list of the attributes of the MLET tag.| Method Detail |
public java.util.Hashtable getAttributes()
MLET tag.MLET tag
and their values.public java.net.URL getDocumentBase()
public java.net.URL getCodeBase()
public java.lang.String getJarFiles()
.jar files specified by the ARCHIVE
attribute of the MLET tag..jar file names.public java.lang.String getCode()
CODE
attribute of the MLET tag.CODE
attribute of the MLET tag.public java.lang.String getSerializedObject()
OBJECT
attribute of the MLET tag.OBJECT
attribute of the MLET tag.public java.lang.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 java.lang.String getVersion()
VERSION
attribute of the MLET tag.VERSION
attribute of the MLET tag.public java.lang.String getParameter(java.lang.String name)
MLET tag.name - A string representing the name of the attribute.MLET tag.public static java.lang.String getClassVersion()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||