|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.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 adapterMethod Detail |
public void sequenceInfo(String info)
sequenceInfo
in interface RepositoryMonitor
info
- the 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 clazz)
establishedPluginClass
in interface RepositoryMonitor
clazz
- the plugin classpublic void exceptionOccurred(String method, Exception e)
exceptionOccurred
in interface RepositoryMonitor
method
- 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 plugin)
pluginInstantiated
in interface RepositoryMonitor
plugin
- 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 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 |