Class ModuleConfiguration
- All Implemented Interfaces:
org.springframework.beans.factory.Aware,org.springframework.beans.factory.InitializingBean,org.springframework.context.ApplicationContextAware
The Rice framework is composed of several separate modules, each of which is responsible for providing a set of functionality. These include:
- KEW - the Rice enterprise workflow module
- KIM - the Rice identity management module
- KSB - the Rice service bus
- KRAD - the Rice rapid application development module
- KRMS - the Rice business rules management syste
- ...as well as several others. Refer to the Rice documentation for a complete list.
Client Applications will also have their own module configurations. A client application could create a single module or multiple modules, depending on how it is organized.
This ModuleConfiguration object is created during Spring initialization. The properties of this ModuleConfiguration are specified in the module's SpringBean definition XML configuration file.
- Author:
- Kuali Rice Team (rice.collab@kuali.org)
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.springframework.context.ApplicationContexta list of entity description files to be loaded during initialization of the persistence service.the list of data dictionary packages to be loaded for this module by the data dictionary service during system startup.protected DataDictionaryServicethe implementation of the data dictionary service to use for this module.protected Stringprotected booleanprotected Stringthe module's namespace.the package name prefixes for classes used in this moduleprotected Objectprotected org.kuali.rice.krad.data.provider.ProviderRegistryprotected List<org.kuali.rice.krad.data.provider.Provider> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidPerforms additional custom initialization after the bean is created and it's properties are set by the Spring framework.Deprecated.OJB is deprecatedReturns a list of data dictionary packages configured for this ModuleConfiguration.Deprecated.org.kuali.rice.krad.data.provider.ProviderRegistryList<org.kuali.rice.krad.data.provider.Provider> List of resource bundle names that will provides messages for this modulebooleanprotected voidDeprecated.voidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext) voidsetDatabaseRepositoryFilePaths(List<String> databaseRepositoryFilePaths) Deprecated.OJB is deprecatedvoidsetDataDictionaryPackages(List<String> dataDictionaryPackages) Initializes the list of data dictionary packages associated with this ModuleConfiguration.voidsetDataDictionaryService(DataDictionaryService dataDictionaryService) voidsetDataSourceName(String dataSourceName) voidsetExcludedPackagePrefixes(List<String> excludedPackagePrefixes) voidsetExternalizableBusinessObjectImplementations(Map<Class, Class> externalizableBusinessObjectImplementations) voidsetInitializeDataDictionary(boolean initializeDataDictionary) voidsetNamespaceCode(String namespaceCode) voidsetPackagePrefixes(List<String> packagePrefixes) voidsetPersistenceService(Object persistenceService) Deprecated.voidsetProviderRegistry(org.kuali.rice.krad.data.provider.ProviderRegistry providerRegistry) voidsetProviders(List<org.kuali.rice.krad.data.provider.Provider> providers) voidsetResourceBundleNames(List<String> resourceBundleNames) Setter for the list of resource bundle names that provides messages for the modulevoidsetScriptConfigurationFilePaths(List<String> scriptConfigurationFilePaths) toString()protected voidThis method passes by reference.
-
Field Details
-
namespaceCode
the module's namespace. -
applicationContext
protected org.springframework.context.ApplicationContext applicationContext -
packagePrefixes
the package name prefixes for classes used in this module -
excludedPackagePrefixes
-
databaseRepositoryFilePaths
a list of entity description files to be loaded during initialization of the persistence service.Currently only used by OJB repository service implementation.
-
dataDictionaryPackages
the list of data dictionary packages to be loaded for this module by the data dictionary service during system startup. -
scriptConfigurationFilePaths
-
resourceBundleNames
-
dataSourceName
-
externalizableBusinessObjectImplementations
-
initializeDataDictionary
protected boolean initializeDataDictionary -
persistenceService
-
providerRegistry
protected org.kuali.rice.krad.data.provider.ProviderRegistry providerRegistry -
dataDictionaryService
the implementation of the data dictionary service to use for this module. -
providers
-
-
Constructor Details
-
ModuleConfiguration
public ModuleConfiguration()Constructor for a ModuleConfiguration.Initializes the arrays of this ModuleConfiguration to empty ArrayLists.
-
-
Method Details
-
afterPropertiesSet
Performs additional custom initialization after the bean is created and it's properties are set by the Spring framework.Loads the data dictionary packages configured for this module. Also loads any OJB database repository files configured.
- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean- Throws:
Exception
-
loadOjbRepositoryFiles
Deprecated.This method is deprecated and won't do anything if the database repository file paths are null or empty. We use reflection here to avoid having to reference PersistenceService directly since it may or may not be on our classpath depending on whether or not KSB is in use. -
getDatabaseRepositoryFilePaths
Deprecated.OJB is deprecatedRetrieves the database repository file paths to be used by the persistence service configured for this module.Used by the OBJ persistence service to load entity descriptors. The file paths are returned as a List of Strings. If no file paths are configured, an empty list is returned. This method should never return null.
- Returns:
- a List containing the databaseRepositoryFilePaths
-
setDatabaseRepositoryFilePaths
Deprecated.OJB is deprecatedInitializes the list of database repository files to load during persistence service initialization.The repository file names are listed in the module's Spring bean configuration file. This property is set during Spring initialization.
- Parameters:
databaseRepositoryFilePaths- the List of entity descriptor files to load.
-
getDataDictionaryPackages
Returns a list of data dictionary packages configured for this ModuleConfiguration.If no data dictionary packages are defined, will return an empty list. Should never return null.
- Returns:
- a List of Strings containing the names of the dataDictionaryPackages
-
setDataDictionaryPackages
Initializes the list of data dictionary packages associated with this ModuleConfiguration.The data dictionary packages are listed in the module's Spring bean configuration file. This property is set during Spring initialization.
- Parameters:
dataDictionaryPackages- a List of Strings containing the dataDictionaryPackages.
-
getExternalizableBusinessObjectImplementations
-
setExternalizableBusinessObjectImplementations
-
getPackagePrefixes
-
setPackagePrefixes
-
getExcludedPackagePrefixes
-
setExcludedPackagePrefixes
-
setInitializeDataDictionary
public void setInitializeDataDictionary(boolean initializeDataDictionary) -
getScriptConfigurationFilePaths
-
getResourceBundleNames
List of resource bundle names that will provides messages for this moduleEach bundle will point to a resource property file that contain key/value message pairs. The properties file should be on the classpath and the name is given by specifying the fully qualified class name (dot notation).
- Returns:
- List<String> resource bundle names
- See Also:
-
setResourceBundleNames
Setter for the list of resource bundle names that provides messages for the module -
isInitializeDataDictionary
public boolean isInitializeDataDictionary() -
setScriptConfigurationFilePaths
-
getNamespaceCode
-
setNamespaceCode
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) - Specified by:
setApplicationContextin interfaceorg.springframework.context.ApplicationContextAware
-
setProviders
-
getProviders
-
getDataDictionaryService
-
setDataDictionaryService
-
getProviderRegistry
public org.kuali.rice.krad.data.provider.ProviderRegistry getProviderRegistry() -
setProviderRegistry
public void setProviderRegistry(org.kuali.rice.krad.data.provider.ProviderRegistry providerRegistry) -
getPersistenceService
Deprecated. -
setPersistenceService
Deprecated. -
getDataSourceName
-
setDataSourceName
-
trimList
This method passes by reference. It will alter the list passed in. -
toString
-