|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.dpml.transit.monitor.AbstractMonitorRouter
net.dpml.transit.monitor.RepositoryMonitorRouter
public class RepositoryMonitorRouter
A repository monitor router handles mutlicast distribution of monitor events to a set of subscribed monitors.
| Field Summary |
|---|
| Fields inherited from interface net.dpml.transit.monitor.Monitor |
|---|
BOOTSTRAP_DEBUG_KEY |
| Constructor Summary | |
|---|---|
RepositoryMonitorRouter()
|
|
| Method Summary | |
|---|---|
void |
addMonitor(Monitor monitor)
Add a monitor to the set of monitors managed by this router. |
void |
classloaderConstructed(String type,
ClassLoader classloader)
Notify all monitors of the creation of a new classloader. |
void |
establishedPluginClass(Class pluginClass)
Notify all monitorrs of the establishment of a plugin class. |
void |
exceptionOccurred(String methodname,
Exception e)
Notify all monitors of an exception related to plugin establishment. |
void |
getPluginRequested(ClassLoader parent,
URI uri,
Object[] args)
Notify all monitors of a request for the establishment of a plugin. |
void |
pluginConstructorFound(Constructor constructor,
Object[] args)
Notify all monitors of the discovery of a plugin constructor. |
void |
pluginInstantiated(Object pluginInstance)
Notify all monitors of the instantiation of a plugin. |
void |
sequenceInfo(String info)
Notify all subscribed monitors of a info message event. |
void |
systemExpanded(URI plugin,
URL[] urls)
Handle notification of system classloader expansion. |
| Methods inherited from class net.dpml.transit.monitor.AbstractMonitorRouter |
|---|
removeMonitor |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface net.dpml.transit.monitor.Router |
|---|
removeMonitor |
| Constructor Detail |
|---|
public RepositoryMonitorRouter()
| Method Detail |
|---|
public void sequenceInfo(String info)
sequenceInfo in interface RepositoryMonitorinfo - the information message
public void getPluginRequested(ClassLoader parent,
URI uri,
Object[] args)
getPluginRequested in interface RepositoryMonitorparent - the parent classloaderuri - the requested plugin uriargs - the supplied constructor argumentspublic void establishedPluginClass(Class pluginClass)
establishedPluginClass in interface RepositoryMonitorpluginClass - the plugin class
public void exceptionOccurred(String methodname,
Exception e)
exceptionOccurred in interface RepositoryMonitormethodname - the method raising the exceptione - the causal exception
public void pluginConstructorFound(Constructor constructor,
Object[] args)
pluginConstructorFound in interface RepositoryMonitorconstructor - the constructorargs - the constructor argspublic void pluginInstantiated(Object pluginInstance)
pluginInstantiated in interface RepositoryMonitorpluginInstance - the plugin instance
public void classloaderConstructed(String type,
ClassLoader classloader)
classloaderConstructed in interface RepositoryMonitortype - the type of classloader (api, spi or impl)classloader - the new classloader
public void systemExpanded(URI plugin,
URL[] urls)
systemExpanded in interface RepositoryMonitorplugin - the uri of the plugin requesting system classloader expansionurls - the array of urls added to the system classloader
public void addMonitor(Monitor monitor)
throws IllegalArgumentException
addMonitor in interface RouteraddMonitor in class AbstractMonitorRoutermonitor - the monitor to add
IllegalArgumentException - if the supplied monitor does not
implement the RepositoryMonitor interface
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||