API Overview API Index Package Overview Direct link to this page
JDK 1.6
  javax.management.loading. MLet View Source
Author(s)
Since
1.5
Version
Serial
Hierarchy
 Object
      ClassLoader
          SecureClassLoader
              URLClassLoader
                  MLet
Implements
 MLetMBean
 MBeanRegistration
 Externalizable
Subclasses
Description
public class MLet
  Allows you to instantiate and register one or several MBeans in the MBean server coming from a remote URL.
See also:   
Constructors
public MLet ()
Constructs a new MLet using the default delegation parent ClassLoader.
public MLet (URL urls)
  Constructs a new MLet for the specified URLs using the default delegation parent ClassLoader.
public MLet (URL urls, boolean delegateToCLR)
  Constructs a new MLet for the specified URLs using the default delegation parent ClassLoader.
public MLet (URL urls, ClassLoader parent)
  Constructs a new MLet for the given URLs.
public MLet (URL urls, ClassLoader parent, boolean delegateToCLR)
  Constructs a new MLet for the given URLs.
public MLet (URL urls, ClassLoader parent, URLStreamHandlerFactory factory)
  Constructs a new MLet for the specified URLs, parent class loader, and URLStreamHandlerFactory.
public MLet (URL urls, ClassLoader parent, URLStreamHandlerFactory factory, boolean delegateToCLR)
  Constructs a new MLet for the specified URLs, parent class loader, and URLStreamHandlerFactory.
Methods
Hide/Show inherited methods
public void addURL (String url) throws ServiceNotFoundException [Specified in MLetMBean]
  Appends the specified URL to the list of URLs to search for classes and resources.
public void addURL (URL url) [Overrides URLClassLoader] [Specified in MLetMBean]
Appends the specified URL to the list of URLs to search for classes and resources.
protected URL check (String version, URL codebase, String jarfile, MLetContent mlet) throws Exception
  This method is to be overridden when extending this service to support caching and versioning.
publicsynchronized void clearAssertionStatus () [Inherited From ClassLoader]
  Sets the default assertion status for this class loader to false and discards any package defaults or class assertion status settings associated with the class loader.
@Deprecated
protectedfinal Class<Object> defineClass (byte[] b, int off, int len) throws ClassFormatError [Inherited From ClassLoader]
  Converts an array of bytes into an instance of class Class.
protectedfinal Class<Object> defineClass (String name, byte[] b, int off, int len) throws ClassFormatError [Inherited From ClassLoader]
  Converts an array of bytes into an instance of class Class.
protectedfinal Class<Object> defineClass (String name, byte[] b, int off, int len, CodeSource cs) [Inherited From SecureClassLoader]
  Converts an array of bytes into an instance of class Class, with an optional CodeSource.
protectedfinal Class<Object> defineClass (String name, byte[] b, int off, int len, ProtectionDomain protectionDomain) throws ClassFormatError [Inherited From ClassLoader]
  Converts an array of bytes into an instance of class Class, with an optional ProtectionDomain.
protectedfinal Class<Object> defineClass (String name, ByteBuffer b, CodeSource cs) [Inherited From SecureClassLoader]
  Converts a ByteBuffer into an instance of class Class, with an optional CodeSource.
protectedfinal Class<Object> defineClass (String name, ByteBuffer b, ProtectionDomain protectionDomain) throws ClassFormatError [Inherited From ClassLoader]
  Converts a ByteBuffer into an instance of class Class, with an optional ProtectionDomain.
protected Package definePackage (String name, Manifest man, URL url) throws IllegalArgumentException [Inherited From URLClassLoader]
  Defines a new package by name in this ClassLoader.
protected Package definePackage (String name, String specTitle, String specVersion, String specVendor, String implTitle, String implVersion, String implVendor, URL sealBase) throws IllegalArgumentException [Inherited From ClassLoader]
  Defines a package by name in this ClassLoader.
protected Class<Object> findClass (String name) throws ClassNotFoundException [Overrides URLClassLoader]
  This is the main method for class loaders that is being redefined.
pack-private Class<Object> findClass (String name, ClassLoaderRepository clr) throws ClassNotFoundException
protected String findLibrary (String libname) [Overrides ClassLoader]
  Returns the absolute path name of a native library.
protectedfinal Class<Object> findLoadedClass (String name) [Inherited From ClassLoader]
  Returns the class with the given binary name if this loader has been recorded by the Java virtual machine as an initiating loader of a class with that binary name.
public URL findResource (String name) [Inherited From URLClassLoader]
  Finds the resource with the specified name on the URL search path.
public Enumeration<URL> findResources (String name) throws IOException [Inherited From URLClassLoader]
  Returns an Enumeration of URLs representing all of the resources on the URL search path having the specified name.
protectedfinal Class<Object> findSystemClass (String name) throws ClassNotFoundException [Inherited From ClassLoader]
  Finds a class with the specified binary name, loading it if necessary.
publicsynchronized String getLibraryDirectory () [Specified in MLetMBean]
  Gets the current directory used by the library loader for storing native libraries before they are loaded into memory.
public Set<Object> getMBeansFromURL (String url) throws ServiceNotFoundException [Specified in MLetMBean]
  Loads a text file containing MLET tags that define the MBeans to be added to the MBean server.
public Set<Object> getMBeansFromURL (URL url) throws ServiceNotFoundException [Specified in MLetMBean]
  Loads a text file containing MLET tags that define the MBeans to be added to the MBean server.
protected Package getPackage (String name) [Inherited From ClassLoader]
  Returns a Package that has been defined by this class loader or any of its ancestors.
protected Package getPackages () [Inherited From ClassLoader]
  Returns all of the Packages defined by this class loader and its ancestors.
publicfinal ClassLoader getParent () [Inherited From ClassLoader]
  Returns the parent class loader for delegation.
protected PermissionCollection getPermissions (CodeSource codesource) [Inherited From URLClassLoader]
  Returns the permissions for the given codesource object.
public URL getResource (String name) [Inherited From ClassLoader]
  Finds the resource with the given name.
public InputStream getResourceAsStream (String name) [Inherited From ClassLoader]
  Returns an input stream for reading the specified resource.
public Enumeration<URL> getResources (String name) throws IOException [Inherited From ClassLoader]
  Finds all the resources with the given name.
publicstatic ClassLoader getSystemClassLoader () [Inherited From ClassLoader]
  Returns the system class loader for delegation.
publicstatic URL getSystemResource (String name) [Inherited From ClassLoader]
  Find a resource of the specified name from the search path used to load classes.
publicstatic InputStream getSystemResourceAsStream (String name) [Inherited From ClassLoader]
  Open for reading, a resource of the specified name from the search path used to load classes.
publicstatic Enumeration<URL> getSystemResources (String name) throws IOException [Inherited From ClassLoader]
  Finds all resources of the specified name from the search path used to load classes.
public URL getURLs () [Overrides URLClassLoader] [Specified in MLetMBean]
  Returns the search path of URLs for loading classes and resources.
public Class<Object> loadClass (String name) throws ClassNotFoundException [Inherited From ClassLoader]
  Loads the class with the specified binary name.
protectedsynchronized Class<Object> loadClass (String name, boolean resolve) throws ClassNotFoundException [Inherited From ClassLoader]
  Loads the class with the specified binary name.
publicsynchronized Class<Object> loadClass (String name, ClassLoaderRepository clr) throws ClassNotFoundException
  Load a class, using the given ClassLoaderRepository if the class is not found in this MLet's URLs.
publicstatic URLClassLoader newInstance (URL urls) [Inherited From URLClassLoader]
  Creates a new instance of URLClassLoader for the specified URLs and default parent class loader.
publicstatic URLClassLoader newInstance (URL urls, ClassLoader parent) [Inherited From URLClassLoader]
  Creates a new instance of URLClassLoader for the specified URLs and parent class loader.
public void postDeregister () [Specified in MBeanRegistration]
Allows the m-let to perform any operations needed after having been unregistered in the MBean server.
public void postRegister (Boolean registrationDone) [Specified in MBeanRegistration]
  Allows the m-let to perform any operations needed after having been registered in the MBean server or after the registration has failed.
public void preDeregister () throws Exception [Specified in MBeanRegistration]
  Allows the m-let to perform any operations it needs before being unregistered by the MBean server.
public ObjectName preRegister (MBeanServer server, ObjectName name) throws Exception [Specified in MBeanRegistration]
  Allows the m-let to perform any operations it needs before being registered in the MBean server.
public void readExternal (ObjectInput in) throws IOException ClassNotFoundException UnsupportedOperationException [Specified in Externalizable]
  Restore this MLet's contents from the given ObjectInput.
protectedfinal void resolveClass (Class<Object> c) [Inherited From ClassLoader]
  Links the specified class.
publicsynchronized void setClassAssertionStatus (String className, boolean enabled) [Inherited From ClassLoader]
  Sets the desired assertion status for the named top-level class in this class loader and any nested classes contained therein.
publicsynchronized void setDefaultAssertionStatus (boolean enabled) [Inherited From ClassLoader]
  Sets the default assertion status for this class loader.
publicsynchronized void setLibraryDirectory (String libdir) [Specified in MLetMBean]
  Sets the directory used by the library loader for storing native libraries before they are loaded into memory.
publicsynchronized void setPackageAssertionStatus (String packageName, boolean enabled) [Inherited From ClassLoader]
  Sets the package default assertion status for the named package.
protectedfinal void setSigners (Class<Object> c, Object signers) [Inherited From ClassLoader]
  Sets the signers of a class.
public void writeExternal (ObjectOutput out) throws IOException UnsupportedOperationException [Specified in Externalizable]
  Save this MLet's contents to the given ObjectOutput.
Fields
Hide/Show inherited fields
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar