|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.ClassLoader
java.security.SecureClassLoader
java.net.URLClassLoader
org.norther.tammi.acorn.net.URLClassLoader
org.norther.tammi.core.base.Loader
public class Loader
A default implementation of LoaderMBean.
| Field Summary |
|---|
| Fields inherited from interface org.norther.tammi.core.base.ReferableMBean |
|---|
DEFAULT_ID, ID, MBEAN, MBEAN_DESCRIPTION, TYPE |
| Constructor Summary | |
|---|---|
Loader()
Constructs a new MBean loader. |
|
Loader(ClassLoader parent)
Constructs a new MBean loader with a parent. |
|
Loader(URL[] urls)
Constructs a new MBean loader with URLs. |
|
Loader(URL[] urls,
ClassLoader parent)
Constructs a new MBean loader with URLs and a parent. |
|
| Method Summary | |
|---|---|
void |
addNotificationListener(NotificationListener listener,
NotificationFilter filter,
Object handback)
|
void |
addURL(URL url)
Adds a new URL to search paths. |
MBeanReference |
getMBean()
Gets a reference to the MBean. |
String |
getNamePattern()
Gets the name pattern as a string. |
MBeanNotificationInfo[] |
getNotificationInfo()
|
ObjectName |
getQueryPattern()
Gets the name pattern as an object name query. |
boolean |
isClassDefined(String name)
Checks whether the named class is defined. |
void |
postDeregister()
|
void |
postRegister(Boolean done)
|
void |
preDeregister()
|
ObjectName |
preRegister(MBeanServer server,
ObjectName name)
|
void |
removeNotificationListener(NotificationListener listener)
|
void |
setNamePattern(String pattern)
Sets the name pattern as a string. |
void |
setQueryPattern(ObjectName pattern)
Sets the name pattern as an object name query. |
| Methods inherited from class org.norther.tammi.acorn.net.URLClassLoader |
|---|
defineClass, defineSubclass, defineSubclass |
| Methods inherited from class java.net.URLClassLoader |
|---|
definePackage, findClass, findResource, findResources, getPermissions, getURLs, newInstance, newInstance |
| Methods inherited from class java.security.SecureClassLoader |
|---|
defineClass, defineClass |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.norther.tammi.core.base.LoaderMBean |
|---|
defineClass, defineSubclass, defineSubclass, getResource, getResourceAsStream, getResources, getURLs, loadClass |
| Constructor Detail |
|---|
public Loader()
public Loader(URL[] urls)
urls - an array of resource URLs.public Loader(ClassLoader parent)
parent - the parent class loader.
public Loader(URL[] urls,
ClassLoader parent)
urls - an array of resource URLs.parent - the parent class loader.| Method Detail |
|---|
public ObjectName preRegister(MBeanServer server,
ObjectName name)
throws Exception
preRegister in interface MBeanRegistrationExceptionpublic void postRegister(Boolean done)
postRegister in interface MBeanRegistration
public void preDeregister()
throws Exception
preDeregister in interface MBeanRegistrationExceptionpublic void postDeregister()
postDeregister in interface MBeanRegistrationpublic MBeanReference getMBean()
ReferableMBean
getMBean in interface ReferableMBeanpublic boolean isClassDefined(String name)
LoaderMBean
isClassDefined in interface LoaderMBeanname - the name of the class.
public void addURL(URL url)
LoaderMBean
addURL in interface LoaderMBeanaddURL in class URLClassLoaderurl - the new URL.public String getNamePattern()
NamePattern
getNamePattern in interface NamePattern
public void setNamePattern(String pattern)
throws MalformedObjectNameException
NamePattern
setNamePattern in interface NamePatternpattern - the name pattern.
MalformedObjectNameException - for an invalid name.public ObjectName getQueryPattern()
NamePattern
getQueryPattern in interface NamePatternpublic void setQueryPattern(ObjectName pattern)
NamePattern
setQueryPattern in interface NamePatternpattern - the query pattern.
public void addNotificationListener(NotificationListener listener,
NotificationFilter filter,
Object handback)
addNotificationListener in interface NotificationBroadcaster
public void removeNotificationListener(NotificationListener listener)
throws ListenerNotFoundException
removeNotificationListener in interface NotificationBroadcasterListenerNotFoundExceptionpublic MBeanNotificationInfo[] getNotificationInfo()
getNotificationInfo in interface NotificationBroadcaster
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||