| java.lang.Object clime.messadmin.providers.ProviderUtils
ProviderUtils | public class ProviderUtils (Code) | | Fetches and caches Services (== Providers)
author: Cédrik LIME |
Method Summary | |
public static void | deregisterCurrent() Clear this service's provider cache for the current ClassLoader. | protected void | finalize() Finalizes this object prior to garbage collection. | public static List | getProviders(Class clazz) Implementation note: keep this method unsynchronized, as it would be a contention point otherwise. | public static List | getProviders(Class clazz, ClassLoader classLoader) | public static void | reload() Clear this service's provider cache. |
deregisterCurrent | public static void deregisterCurrent()(Code) | | Clear this service's provider cache for the current ClassLoader.
After invoking this method, subsequent invocations of the
iterator method will lazily look up and instantiate
providers from scratch, just as is done by a newly-created instance of
this class.
This method is intended for use in situations in which new providers
can be installed into a running Java virtual machine.
|
finalize | protected void finalize() throws Throwable(Code) | | Finalizes this object prior to garbage collection. The
deregisterAll method is called to deregister all
currently registered service providers. This method should not
be called from application code.
exception: Throwable - if an error occurs during superclassfinalization. See Also: java.lang.Object.finalize |
getProviders | public static List getProviders(Class clazz)(Code) | | Implementation note: keep this method unsynchronized, as it would be a contention point otherwise.
We don't care if the cache is filled multiple times.
Parameters: clazz - list of providers for clazz, sorted by priority |
reload | public static void reload()(Code) | | Clear this service's provider cache.
After invoking this method, subsequent invocations of the
iterator method will lazily look up and instantiate
providers from scratch, just as is done by a newly-created instance of
this class.
This method is intended for use in situations in which new providers
can be installed into a running Java virtual machine.
|
|
|