aries-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From n..@apache.org
Subject svn commit: r1154502 - in /aries/trunk/jpa/jpa-container-eclipselink-adapter/src/main: java/org/apache/aries/jpa/eclipselink/adapter/ resources/ resources/org/ resources/org/apache/ resources/org/apache/aries/ resources/org/apache/aries/jpa/ resources/...
Date Sat, 06 Aug 2011 12:13:43 GMT
Author: not
Date: Sat Aug  6 12:13:43 2011
New Revision: 1154502

URL: http://svn.apache.org/viewvc?rev=1154502&view=rev
Log:
ARIES-467 NLS enable log and exception messages from JPA eclipselink adapter.

Added:
    aries/trunk/jpa/jpa-container-eclipselink-adapter/src/main/resources/
    aries/trunk/jpa/jpa-container-eclipselink-adapter/src/main/resources/org/
    aries/trunk/jpa/jpa-container-eclipselink-adapter/src/main/resources/org/apache/
    aries/trunk/jpa/jpa-container-eclipselink-adapter/src/main/resources/org/apache/aries/
    aries/trunk/jpa/jpa-container-eclipselink-adapter/src/main/resources/org/apache/aries/jpa/
    aries/trunk/jpa/jpa-container-eclipselink-adapter/src/main/resources/org/apache/aries/jpa/eclipselink/
    aries/trunk/jpa/jpa-container-eclipselink-adapter/src/main/resources/org/apache/aries/jpa/eclipselink/adapter/
    aries/trunk/jpa/jpa-container-eclipselink-adapter/src/main/resources/org/apache/aries/jpa/eclipselink/adapter/jpaEclipseLinkAdapter.properties
  (with props)
Modified:
    aries/trunk/jpa/jpa-container-eclipselink-adapter/src/main/java/org/apache/aries/jpa/eclipselink/adapter/EclipseLinkProviderService.java

Modified: aries/trunk/jpa/jpa-container-eclipselink-adapter/src/main/java/org/apache/aries/jpa/eclipselink/adapter/EclipseLinkProviderService.java
URL: http://svn.apache.org/viewvc/aries/trunk/jpa/jpa-container-eclipselink-adapter/src/main/java/org/apache/aries/jpa/eclipselink/adapter/EclipseLinkProviderService.java?rev=1154502&r1=1154501&r2=1154502&view=diff
==============================================================================
--- aries/trunk/jpa/jpa-container-eclipselink-adapter/src/main/java/org/apache/aries/jpa/eclipselink/adapter/EclipseLinkProviderService.java
(original)
+++ aries/trunk/jpa/jpa-container-eclipselink-adapter/src/main/java/org/apache/aries/jpa/eclipselink/adapter/EclipseLinkProviderService.java
Sat Aug  6 12:13:43 2011
@@ -27,6 +27,7 @@ import javax.persistence.spi.Persistence
 import javax.persistence.spi.ProviderUtil;
 
 import org.apache.aries.jpa.eclipselink.adapter.platform.OSGiTSServer;
+import org.apache.aries.util.nls.MessageUtil;
 import org.osgi.framework.Bundle;
 import org.osgi.framework.ServiceFactory;
 import org.osgi.framework.ServiceRegistration;
@@ -39,7 +40,8 @@ import org.slf4j.LoggerFactory;
  * we can go in at entity manager creation time and set the eclipselink target-server to
be {@link OSGiTSServer}.
  */
 public class EclipseLinkProviderService implements ServiceFactory {
-  private static final Logger logger = LoggerFactory.getLogger(Activator.class);  
+  private static final Logger logger = LoggerFactory.getLogger(Activator.class);
+  private static final MessageUtil MESSAGES = MessageUtil.createMessageUtil(EclipseLinkProviderService.class,
"org.apache.aries.jpa.eclipselink.adapter.jpaEclipseLinkAdapter");
   
   private final Bundle eclipseLinkJpaBundle;
     
@@ -71,7 +73,7 @@ public class EclipseLinkProviderService 
       };
         
     } catch (Exception e) {
-        logger.error("Got exception trying to instantiate the EclipseLink provider", e);
+        logger.error(MESSAGES.getMessage("error.creating.eclipselink.provider"), e);
         return null;                
     }
   }

Added: aries/trunk/jpa/jpa-container-eclipselink-adapter/src/main/resources/org/apache/aries/jpa/eclipselink/adapter/jpaEclipseLinkAdapter.properties
URL: http://svn.apache.org/viewvc/aries/trunk/jpa/jpa-container-eclipselink-adapter/src/main/resources/org/apache/aries/jpa/eclipselink/adapter/jpaEclipseLinkAdapter.properties?rev=1154502&view=auto
==============================================================================
--- aries/trunk/jpa/jpa-container-eclipselink-adapter/src/main/resources/org/apache/aries/jpa/eclipselink/adapter/jpaEclipseLinkAdapter.properties
(added)
+++ aries/trunk/jpa/jpa-container-eclipselink-adapter/src/main/resources/org/apache/aries/jpa/eclipselink/adapter/jpaEclipseLinkAdapter.properties
Sat Aug  6 12:13:43 2011
@@ -0,0 +1,20 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+error.creating.eclipselink.provider=An exception was caught trying to instantiate the EclipseLink
JPA provider.
\ No newline at end of file

Propchange: aries/trunk/jpa/jpa-container-eclipselink-adapter/src/main/resources/org/apache/aries/jpa/eclipselink/adapter/jpaEclipseLinkAdapter.properties
------------------------------------------------------------------------------
    svn:mime-type = text/plain



Mime
View raw message