You are viewing a plain text version of this content. The canonical link for it is here.
Posted to muse-commits@ws.apache.org by da...@apache.org on 2006/07/23 22:36:49 UTC

svn commit: r424810 - /webservices/muse/trunk/modules/muse-core/src/org/apache/muse/core/SimpleResource.java

Author: danj
Date: Sun Jul 23 13:36:49 2006
New Revision: 424810

URL: http://svn.apache.org/viewvc?rev=424810&view=rev
Log:
Added an extra check to setEndpointReference() so that we could still (re-)set the EPR of a resource as long as it 
happened before initialize() was called. This is needed by the persistence layer when it is creating resources and 
then assigning them EPRs that were found in the persistence location (from the last time it booted).

Modified:
    webservices/muse/trunk/modules/muse-core/src/org/apache/muse/core/SimpleResource.java

Modified: webservices/muse/trunk/modules/muse-core/src/org/apache/muse/core/SimpleResource.java
URL: http://svn.apache.org/viewvc/webservices/muse/trunk/modules/muse-core/src/org/apache/muse/core/SimpleResource.java?rev=424810&r1=424809&r2=424810&view=diff
==============================================================================
--- webservices/muse/trunk/modules/muse-core/src/org/apache/muse/core/SimpleResource.java (original)
+++ webservices/muse/trunk/modules/muse-core/src/org/apache/muse/core/SimpleResource.java Sun Jul 23 13:36:49 2006
@@ -337,7 +337,7 @@
     
     public final void setEndpointReference(EndpointReference epr)
     {
-        if (_epr != null)
+        if (_epr != null && hasBeenInitialized())
             throw new RuntimeException(_MESSAGES.get("ExistingResourceEPR"));
         
         _epr = epr;



---------------------------------------------------------------------
To unsubscribe, e-mail: muse-commits-unsubscribe@ws.apache.org
For additional commands, e-mail: muse-commits-help@ws.apache.org