|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.kuali.rice.krad.bo.ModuleConfiguration
public class ModuleConfiguration
This class contains various configuration properties for a Rice module.
The Rice framework is composed of several separate modules, each of which is responsible for providing a set of functionality. These include:
Field Summary | |
---|---|
protected org.springframework.context.ApplicationContext |
applicationContext
|
protected List<String> |
databaseRepositoryFilePaths
a list of entity description files to be loaded during initialization of the persistence service. |
protected List<String> |
dataDictionaryPackages
the list of data dictionary packages to be loaded for this module by the data dictionary service during system startup. |
protected DataDictionaryService |
dataDictionaryService
the implementation of the data dictionary service to use for this module. |
protected String |
dataSourceName
|
protected javax.persistence.EntityManager |
entityManager
|
protected Map<Class,Class> |
externalizableBusinessObjectImplementations
|
protected boolean |
initializeDataDictionary
|
protected List<String> |
jobNames
|
protected String |
namespaceCode
the module's namespace. |
protected List<String> |
packagePrefixes
the package name prefixes for classes used in this module |
protected PersistenceService |
persistenceService
|
protected List<String> |
resourceBundleNames
|
protected List<String> |
scriptConfigurationFilePaths
|
protected List<String> |
triggerNames
|
Constructor Summary | |
---|---|
ModuleConfiguration()
Constructor for a ModuleConfiguration. |
Method Summary | |
---|---|
void |
afterPropertiesSet()
Performs additional custom initialization after the bean is created and it's properties are set by the Spring framework. |
List<String> |
getDatabaseRepositoryFilePaths()
Retrieves the database repository file paths to be used by the persistence service configured for this module. |
List<String> |
getDataDictionaryPackages()
Returns a list of data dictionary packages configured for this ModuleConfiguration. |
DataDictionaryService |
getDataDictionaryService()
|
String |
getDataSourceName()
|
javax.persistence.EntityManager |
getEntityManager()
|
Map<Class,Class> |
getExternalizableBusinessObjectImplementations()
|
List<String> |
getJobNames()
|
String |
getNamespaceCode()
|
List<String> |
getPackagePrefixes()
|
PersistenceService |
getPersistenceService()
|
List<String> |
getResourceBundleNames()
List of resource bundle names that will provides messages for this module |
List<String> |
getScriptConfigurationFilePaths()
|
List<String> |
getTriggerNames()
|
boolean |
isInitializeDataDictionary()
|
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
|
void |
setDatabaseRepositoryFilePaths(List<String> databaseRepositoryFilePaths)
Initializes the list of database repository files to load during persistence service initialization. |
void |
setDataDictionaryPackages(List<String> dataDictionaryPackages)
Initializes the list of data dictionary packages associated with this ModuleConfiguration. |
void |
setDataDictionaryService(DataDictionaryService dataDictionaryService)
|
void |
setDataSourceName(String dataSourceName)
|
void |
setEntityManager(javax.persistence.EntityManager entityManager)
|
void |
setExternalizableBusinessObjectImplementations(Map<Class,Class> externalizableBusinessObjectImplementations)
|
void |
setInitializeDataDictionary(boolean initializeDataDictionary)
|
void |
setJobNames(List<String> jobNames)
|
void |
setNamespaceCode(String namespaceCode)
|
void |
setPackagePrefixes(List<String> packagePrefixes)
|
void |
setPersistenceService(PersistenceService persistenceService)
|
void |
setResourceBundleNames(List<String> resourceBundleNames)
Setter for the list of resource bundle names that provides messages for the module |
void |
setScriptConfigurationFilePaths(List<String> scriptConfigurationFilePaths)
|
void |
setTriggerNames(List<String> triggerNames)
|
protected void |
trimList(List<String> stringList)
This method passes by reference. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected String namespaceCode
protected org.springframework.context.ApplicationContext applicationContext
protected List<String> packagePrefixes
protected List<String> databaseRepositoryFilePaths
Currently only used by OJB repository service implementation.
protected List<String> dataDictionaryPackages
protected List<String> scriptConfigurationFilePaths
protected List<String> jobNames
protected List<String> triggerNames
protected List<String> resourceBundleNames
protected String dataSourceName
protected javax.persistence.EntityManager entityManager
protected Map<Class,Class> externalizableBusinessObjectImplementations
protected boolean initializeDataDictionary
protected PersistenceService persistenceService
protected DataDictionaryService dataDictionaryService
Constructor Detail |
---|
public ModuleConfiguration()
Initializes the arrays of this ModuleConfiguration to empty ArrayLists.
Method Detail |
---|
public void afterPropertiesSet() throws Exception
Loads the data dictionary packages configured for this module. Also loads any OJB database repository files configured.
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
Exception
public List<String> getDatabaseRepositoryFilePaths()
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.
public void setDatabaseRepositoryFilePaths(List<String> databaseRepositoryFilePaths)
The repository file names are listed in the module's Spring bean configuration file. This property is set during Spring initialization.
databaseRepositoryFilePaths
- the List of entity descriptor files to load.public List<String> getDataDictionaryPackages()
If no data dictionary packages are defined, will return an empty list. Should never return null.
public void setDataDictionaryPackages(List<String> dataDictionaryPackages)
The data dictionary packages are listed in the module's Spring bean configuration file. This property is set during Spring initialization.
dataDictionaryPackages
- a List of Strings containing the dataDictionaryPackages.public Map<Class,Class> getExternalizableBusinessObjectImplementations()
public void setExternalizableBusinessObjectImplementations(Map<Class,Class> externalizableBusinessObjectImplementations)
externalizableBusinessObjectImplementations
- the externalizableBusinessObjectImplementations to setpublic List<String> getPackagePrefixes()
public void setPackagePrefixes(List<String> packagePrefixes)
public void setInitializeDataDictionary(boolean initializeDataDictionary)
public List<String> getScriptConfigurationFilePaths()
public List<String> getJobNames()
public void setJobNames(List<String> jobNames)
jobNames
- the jobNames to setpublic List<String> getTriggerNames()
public void setTriggerNames(List<String> triggerNames)
triggerNames
- the triggerNames to setpublic List<String> getResourceBundleNames()
Each 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).
ResourceBundle
public void setResourceBundleNames(List<String> resourceBundleNames)
resourceBundleNames
- public boolean isInitializeDataDictionary()
public void setScriptConfigurationFilePaths(List<String> scriptConfigurationFilePaths)
scriptConfigurationFilePaths
- the scriptConfigurationFilePaths to setpublic String getNamespaceCode()
public void setNamespaceCode(String namespaceCode)
namespaceCode
- the namespaceCode to setpublic void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
setApplicationContext
in interface org.springframework.context.ApplicationContextAware
public DataDictionaryService getDataDictionaryService()
public void setDataDictionaryService(DataDictionaryService dataDictionaryService)
dataDictionaryService
- the dataDictionaryService to setpublic PersistenceService getPersistenceService()
public void setPersistenceService(PersistenceService persistenceService)
persistenceService
- the persistenceService to setpublic String getDataSourceName()
public void setDataSourceName(String dataSourceName)
public javax.persistence.EntityManager getEntityManager()
public void setEntityManager(javax.persistence.EntityManager entityManager)
protected void trimList(List<String> stringList)
stringList
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |