tuscany-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lrese...@apache.org
Subject svn commit: r915210 - in /tuscany/sca-java-2.x/trunk/modules/builder/src/main/java/org/apache/tuscany/sca/builder/impl: CompositePolicyBuilderImpl.java EndpointBuilderImpl.java PolicyAttachmentBuilderImpl.java
Date Tue, 23 Feb 2010 07:03:22 GMT
Author: lresende
Date: Tue Feb 23 07:03:22 2010
New Revision: 915210

URL: http://svn.apache.org/viewvc?rev=915210&view=rev
Log:
Fixing resource bundle location that was missing the package structure

Modified:
    tuscany/sca-java-2.x/trunk/modules/builder/src/main/java/org/apache/tuscany/sca/builder/impl/CompositePolicyBuilderImpl.java
    tuscany/sca-java-2.x/trunk/modules/builder/src/main/java/org/apache/tuscany/sca/builder/impl/EndpointBuilderImpl.java
    tuscany/sca-java-2.x/trunk/modules/builder/src/main/java/org/apache/tuscany/sca/builder/impl/PolicyAttachmentBuilderImpl.java

Modified: tuscany/sca-java-2.x/trunk/modules/builder/src/main/java/org/apache/tuscany/sca/builder/impl/CompositePolicyBuilderImpl.java
URL: http://svn.apache.org/viewvc/tuscany/sca-java-2.x/trunk/modules/builder/src/main/java/org/apache/tuscany/sca/builder/impl/CompositePolicyBuilderImpl.java?rev=915210&r1=915209&r2=915210&view=diff
==============================================================================
--- tuscany/sca-java-2.x/trunk/modules/builder/src/main/java/org/apache/tuscany/sca/builder/impl/CompositePolicyBuilderImpl.java
(original)
+++ tuscany/sca-java-2.x/trunk/modules/builder/src/main/java/org/apache/tuscany/sca/builder/impl/CompositePolicyBuilderImpl.java
Tue Feb 23 07:03:22 2010
@@ -45,6 +45,7 @@
  * @version $Rev$ $Date$
  */
 public class CompositePolicyBuilderImpl extends ComponentPolicyBuilderImpl implements CompositeBuilder
{
+    private static final String BUILDER_VALIDATION_BUNDLE = "org.apache.tuscany.sca.builder.builder-validation-messages";
 
     public CompositePolicyBuilderImpl(ExtensionPointRegistry registry) {
         super(registry);
@@ -186,7 +187,7 @@
                     if (policyNames.size() > 1){
                         Monitor.error(context.getMonitor(), 
                                       this, 
-                                      "builder-validation-messages", 
+                                      BUILDER_VALIDATION_BUNDLE, 
                                       "MultiplePolicyLanguagesInEP", 
                                       ep.toString(), 
                                       policyNames.toString());
@@ -209,7 +210,7 @@
                     if (policyNames.size() > 1){
                         Monitor.error(context.getMonitor(), 
                                       this, 
-                                      "builder-validation-messages", 
+                                      BUILDER_VALIDATION_BUNDLE, 
                                       "MultiplePolicyLanguagesInEPR", 
                                       epr.toString(), 
                                       policyNames.toString());
@@ -232,7 +233,7 @@
                 if (policyNames.size() > 1){
                     Monitor.error(context.getMonitor(), 
                                   this, 
-                                  "builder-validation-messages", 
+                                  BUILDER_VALIDATION_BUNDLE, 
                                   "MultiplePolicyLanguagesInImplementation", 
                                   component.toString(), 
                                   policyNames.toString());

Modified: tuscany/sca-java-2.x/trunk/modules/builder/src/main/java/org/apache/tuscany/sca/builder/impl/EndpointBuilderImpl.java
URL: http://svn.apache.org/viewvc/tuscany/sca-java-2.x/trunk/modules/builder/src/main/java/org/apache/tuscany/sca/builder/impl/EndpointBuilderImpl.java?rev=915210&r1=915209&r2=915210&view=diff
==============================================================================
--- tuscany/sca-java-2.x/trunk/modules/builder/src/main/java/org/apache/tuscany/sca/builder/impl/EndpointBuilderImpl.java
(original)
+++ tuscany/sca-java-2.x/trunk/modules/builder/src/main/java/org/apache/tuscany/sca/builder/impl/EndpointBuilderImpl.java
Tue Feb 23 07:03:22 2010
@@ -40,6 +40,8 @@
  * creates endpoint models for component services.
  */
 public class EndpointBuilderImpl implements CompositeBuilder {
+    private static final String BUILDER_VALIDATION_BUNDLE = "org.apache.tuscany.sca.builder.builder-validation-messages";
+    
     private AssemblyFactory assemblyFactory;
 
     public EndpointBuilderImpl(ExtensionPointRegistry registry) {
@@ -97,7 +99,7 @@
                                 //FIXME create a java validation message resource bundle
                                 Monitor.error(monitor, 
                                               this, 
-                                              "org.apache.tuscany.sca.builder.builder-validation-messages",
+                                              BUILDER_VALIDATION_BUNDLE,
                                               "JaxWSClientAsyncMethodsNotAllowed", 
                                               service, 
                                               service.getName());                  

Modified: tuscany/sca-java-2.x/trunk/modules/builder/src/main/java/org/apache/tuscany/sca/builder/impl/PolicyAttachmentBuilderImpl.java
URL: http://svn.apache.org/viewvc/tuscany/sca-java-2.x/trunk/modules/builder/src/main/java/org/apache/tuscany/sca/builder/impl/PolicyAttachmentBuilderImpl.java?rev=915210&r1=915209&r2=915210&view=diff
==============================================================================
--- tuscany/sca-java-2.x/trunk/modules/builder/src/main/java/org/apache/tuscany/sca/builder/impl/PolicyAttachmentBuilderImpl.java
(original)
+++ tuscany/sca-java-2.x/trunk/modules/builder/src/main/java/org/apache/tuscany/sca/builder/impl/PolicyAttachmentBuilderImpl.java
Tue Feb 23 07:03:22 2010
@@ -72,6 +72,8 @@
  * @version $Rev$ $Date$
  */
 public class PolicyAttachmentBuilderImpl implements CompositeBuilder {
+    private static final String BUILDER_VALIDATION_BUNDLE = "org.apache.tuscany.sca.builder.builder-validation-messages";
+    
     private StAXHelper staxHelper;
     private DOMHelper domHelper;
     private ExtensionPointRegistry registry;
@@ -160,7 +162,7 @@
                                 (node.getLocalName().equals("property"))){
                                 Monitor.error(monitor, 
                                               this, 
-                                              "org.apache.tuscany.sca.builder.builder-validation-messages",

+                                              BUILDER_VALIDATION_BUNDLE, 
                                               "PolicyAttachedToProperty", 
                                               ps.getName().toString());
                                 break;
@@ -179,7 +181,7 @@
                             	// models
                                 Monitor.warning(monitor, 
                                         this, 
-                                        "org.apache.tuscany.sca.builder.builder-validation-messages",

+                                        BUILDER_VALIDATION_BUNDLE, 
                                         "PolicyDOMModelMissmatch", 
                                         ps.getName().toString(),
                                         index);



Mime
View raw message