|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectnet.dpml.transit.monitor.AbstractAdapter
net.dpml.transit.monitor.RepositoryMonitorAdapter
Adapts repository service monitor events to a logging channel.
| Field Summary |
| Fields inherited from interface net.dpml.transit.monitor.Monitor |
BOOTSTRAP_DEBUG_KEY |
| Constructor Summary | |
RepositoryMonitorAdapter(Adapter adapter)
Creation of a new repository monito to logging adapter. |
|
| Method Summary | |
void |
classloaderConstructed(String type,
ClassLoader classloader)
Handle notification of the creation of a new classloader. |
void |
establishedPluginClass(Class clazz)
Handle notification of the establishment of a plugin class. |
void |
exceptionOccurred(String method,
Exception e)
Handle notification of an exception related to plugin establishment. |
protected Adapter |
getAdapter()
Returns the adapter assigned to this adaptive monitor. |
void |
getPluginRequested(ClassLoader parent,
URI uri,
Object[] args)
Handle notification of a request for the establishment of a plugin. |
boolean |
isTraceEnabled()
Test is debug trace monitoring is enabled. |
void |
pluginConstructorFound(Constructor constructor,
Object[] args)
Handle notification of the discovery of a plugin constructor. |
void |
pluginInstantiated(Object plugin)
Handle notification of the instantiation of a plugin. |
void |
sequenceInfo(String info)
Handle notification of an information message. |
void |
systemExpanded(URI plugin,
URL[] urls)
Handle notification of system classloader expansion. |
void |
trace(String message)
Notify the monitor of a trace level message to log. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public RepositoryMonitorAdapter(Adapter adapter)
adapter - the logging adapter| Method Detail |
public void sequenceInfo(String info)
sequenceInfo in interface RepositoryMonitorinfo - the 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 clazz)
establishedPluginClass in interface RepositoryMonitorclazz - the plugin class
public void exceptionOccurred(String method,
Exception e)
exceptionOccurred in interface RepositoryMonitormethod - 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 plugin)
pluginInstantiated in interface RepositoryMonitorplugin - 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 classloaderpublic boolean isTraceEnabled()
public void trace(String message)
message - the trace level message to logprotected Adapter getAdapter()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||