Class SpringMetadataProviderImpl
java.lang.Object
org.kuali.rice.krad.data.provider.impl.MetadataProviderBase
org.kuali.rice.krad.data.provider.spring.SpringMetadataProviderImpl
- All Implemented Interfaces:
MetadataProvider,Provider
Metadata provider which can be configured via the standard spring mechanisms.
The bean locations are listed as part of the metadata provider service definition. The beans in this provider are loaded into a separate context from all other beans in Rice.
- Author:
- Kuali Rice Team (rice.collab@kuali.org)
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.springframework.beans.factory.support.DefaultListableBeanFactoryThe default bean factory to use.protected org.springframework.core.io.DefaultResourceLoaderThe default resource loader to use.The locations of the bean resources.Fields inherited from class org.kuali.rice.krad.data.provider.impl.MetadataProviderBase
masterMetadataMap -
Constructor Summary
ConstructorsConstructorDescriptionCreates a metadata provider which can be configured via the standard spring mechanisms. -
Method Summary
Modifier and TypeMethodDescriptionGets the locations of the bean resources.voidinitializeMetadata(Collection<Class<?>> types) Performs the initialization of the provider with the given set of types.voidsetResourceLocations(List<String> resourceLocations) Setter for the resource locations.toString()Methods inherited from class org.kuali.rice.krad.data.provider.impl.MetadataProviderBase
getMetadataForType, getSupportedTypes, handles, isClassPersistable, provideMetadata, provideMetadataForTypes, requiresListOfExistingTypes
-
Field Details
-
resourceLocations
The locations of the bean resources. -
resourceLoader
protected org.springframework.core.io.DefaultResourceLoader resourceLoaderThe default resource loader to use. -
beanFactory
protected org.springframework.beans.factory.support.DefaultListableBeanFactory beanFactoryThe default bean factory to use.
-
-
Constructor Details
-
SpringMetadataProviderImpl
public SpringMetadataProviderImpl()Creates a metadata provider which can be configured via the standard spring mechanisms.
-
-
Method Details
-
initializeMetadata
Performs the initialization of the provider with the given set of types.If the list is null or empty, the provider is expected to discover the types via other means, or do nothing if the types cannot be discovered.
- Specified by:
initializeMetadatain classMetadataProviderBase
-
getResourceLocations
Gets the locations of the bean resources.- Returns:
- the locations of the bean resources.
-
setResourceLocations
Setter for the resource locations.- Parameters:
resourceLocations- the resource locations to set.
-
toString
-