|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.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 RepositoryMonitor
info
- the information messagepublic void getPluginRequested(ClassLoader parent, URI uri, Object[] args)
getPluginRequested
in interface RepositoryMonitor
parent
- the parent classloaderuri
- the requested plugin uriargs
- the supplied constructor argumentspublic void establishedPluginClass(Class pluginClass)
establishedPluginClass
in interface RepositoryMonitor
pluginClass
- the plugin classpublic void exceptionOccurred(String methodname, Exception e)
exceptionOccurred
in interface RepositoryMonitor
methodname
- the method raising the exceptione
- the causal exceptionpublic void pluginConstructorFound(Constructor constructor, Object[] args)
pluginConstructorFound
in interface RepositoryMonitor
constructor
- the constructorargs
- the constructor argspublic void pluginInstantiated(Object pluginInstance)
pluginInstantiated
in interface RepositoryMonitor
pluginInstance
- the plugin instancepublic void classloaderConstructed(String type, ClassLoader classloader)
classloaderConstructed
in interface RepositoryMonitor
type
- the type of classloader (api, spi or impl)classloader
- the new classloaderpublic void systemExpanded(URI plugin, URL[] urls)
systemExpanded
in interface RepositoryMonitor
plugin
- the uri of the plugin requesting system classloader expansionurls
- the array of urls added to the system classloaderpublic void addMonitor(Monitor monitor) throws IllegalArgumentException
addMonitor
in interface Router
addMonitor
in class AbstractMonitorRouter
monitor
- 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 |