org.kuali.rice.krad.data.provider
Interface ProviderRegistry

All Known Implementing Classes:
ProviderRegistryImpl

public interface ProviderRegistry

Registry of KRAD Data Providers.

Author:
Kuali Rice Team (rice.collab@kuali.org)

Method Summary
 MetadataProvider getMetadataProvider(Class<?> type)
          Obtain the first MetadataProvider which handles the gives type.
 List<MetadataProvider> getMetadataProviders()
          Obtain list of all registered MetadataProviders
 PersistenceProvider getPersistenceProvider(Class<?> type)
          Return the persistence provider for a given type.
 List<Provider> getProviders()
          Obtain list of all registered providers.
 List<Provider> getProvidersForType(Class<? extends Provider> providerType)
          Obtain list of all registered providers of a given type.
 void registerProvider(Provider provider)
          Register a Provider.
 boolean unregisterProvider(Provider provider)
          Unregister a Provider if it exists.
 

Method Detail

registerProvider

void registerProvider(Provider provider)
Register a Provider.

Parameters:
provider - the provider to register

unregisterProvider

boolean unregisterProvider(Provider provider)
Unregister a Provider if it exists.

Parameters:
provider - the provider to unregister
Returns:
true if provider was unregistered

getProviders

List<Provider> getProviders()
Obtain list of all registered providers.

Returns:
non-null and immutable list of all registered providers

getProvidersForType

List<Provider> getProvidersForType(Class<? extends Provider> providerType)
Obtain list of all registered providers of a given type.

Parameters:
providerType - the provider type
Returns:
non-null and immutable list of all registered providers of a given type

getMetadataProviders

List<MetadataProvider> getMetadataProviders()
Obtain list of all registered MetadataProviders

Returns:
non-null and immutable list of all registered MetadataProviders

getMetadataProvider

MetadataProvider getMetadataProvider(Class<?> type)
Obtain the first MetadataProvider which handles the gives type.

Returns:
the MetadataProvider which handles the given type, or null if none could be found

getPersistenceProvider

PersistenceProvider getPersistenceProvider(Class<?> type)
Return the persistence provider for a given type.

Parameters:
type - the data object type
Returns:
persistence provider for given type, or null if no matching provider is registered


Copyright © 2005-2013 The Kuali Foundation. All Rights Reserved.