public interface EntityProviderListener<T extends EntityProvider>
EntityProviderManager#registerNotifier(EntityProviderNotifier) to
register it with the system. Whenever an entity provider is registered the run(EntityProvider) method
is called. You can limit the calls to your listener using the getPrefixFilter() and getCapabilityFilter().EntityProvider for the generics
to receive every capability type.| Modifier and Type | Method and Description |
|---|---|
Class<T> |
getCapabilityFilter() |
String |
getPrefixFilter() |
void |
run(T provider)
This method will be called once per each provider that is registered with the system
depending on the filter methods in this class
WARNING: Do not hold onto (cache) the provider returned to you by this method, if you need to use it again later you should fetch it using the methods in EntityProviderManager
like EntityProviderManager.getProviderByPrefix(String) and
EntityProviderManager.getProviderByPrefixAndCapability(String, Class) among others,
you can cache the prefix name and capabilities if you need to |
String getPrefixFilter()
Class<T> getCapabilityFilter()
void run(T provider)
EntityProviderManager
like EntityProviderManager.getProviderByPrefix(String) and
EntityProviderManager.getProviderByPrefixAndCapability(String, Class) among others,
you can cache the prefix name and capabilities if you need toprovider - the currently registered provider that you are being notified aboutCopyright © 2003–2021 Sakai Project. All rights reserved.