You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jackrabbit.apache.org by st...@apache.org on 2007/02/14 17:04:05 UTC
svn commit: r507592 -
/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/NamespaceRegistryImpl.java
Author: stefan
Date: Wed Feb 14 08:04:04 2007
New Revision: 507592
URL: http://svn.apache.org/viewvc?view=rev&rev=507592
Log:
synchronizing registerNamespace methods
Modified:
jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/NamespaceRegistryImpl.java
Modified: jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/NamespaceRegistryImpl.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/NamespaceRegistryImpl.java?view=diff&rev=507592&r1=507591&r2=507592
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/NamespaceRegistryImpl.java (original)
+++ jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/NamespaceRegistryImpl.java Wed Feb 14 08:04:04 2007
@@ -327,10 +327,12 @@
*
* @param prefixHint the prefix hint
* @param uri the namespace URI
+ * @throws NamespaceException if an illegal attempt is made to register
+ * a mapping
* @throws RepositoryException if an unexpected error occurs
* @see #registerNamespace(String, String)
*/
- public void safeRegisterNamespace(String prefixHint, String uri)
+ public synchronized void safeRegisterNamespace(String prefixHint, String uri)
throws NamespaceException, RepositoryException {
try {
// Check if the namespace is already registered
@@ -405,7 +407,7 @@
/**
* {@inheritDoc}
*/
- public void registerNamespace(String prefix, String uri)
+ public synchronized void registerNamespace(String prefix, String uri)
throws NamespaceException, UnsupportedRepositoryOperationException,
AccessDeniedException, RepositoryException {
if (prefix == null || uri == null) {