org.sakaiproject.entitybroker.util.spring
Class EntityPropertiesServiceSpringImpl
java.lang.Object
org.sakaiproject.entitybroker.util.core.AbstractEntityPropertiesService
org.sakaiproject.entitybroker.util.spring.EntityPropertiesServiceSpringImpl
- All Implemented Interfaces:
- EntityPropertiesService
public class EntityPropertiesServiceSpringImpl
- extends AbstractEntityPropertiesService
- implements EntityPropertiesService
This service allows us to track all the properties files related to describing the capabilities
of our entities and the entities themselves, it allows lookup of strings as well
NOTE: Depends on spring and extends the spring based message bundle
- Author:
- Aaron Zeckoski (azeckoski @ gmail.com)
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EntityPropertiesServiceSpringImpl
public EntityPropertiesServiceSpringImpl()
registerLocaleMessages
public List<String> registerLocaleMessages(String prefix,
String baseName,
Locale locale,
ClassLoader classLoader)
- Description copied from class:
AbstractEntityPropertiesService
- Override this to provide custom message handling,
you must register the
AbstractEntityPropertiesService.MessageBundle you create in this method so that the
messages can be looked up later, register using AbstractEntityPropertiesService.registerPrefixMessageBundle(String, MessageBundle)
- Specified by:
registerLocaleMessages in class AbstractEntityPropertiesService
- Parameters:
prefix - an entity prefixbaseName - (optional) the part before the .properties or _en.properties,
example: location/dir/myentity.properties, if null then prefix is usedlocale - the Locale to register messages forclassLoader - (optional) the ClassLoader to find the properties files in,
if null then the default thread ClassLoader is used
- Returns:
- the list of registered keys for this Locale
Copyright © 2007-2012 CARET, University of Cambridge. All Rights Reserved.