Coverage Report - org.trails.i18n.DefaultLocaleHolder
 
Classes in this File Line Coverage Branch Coverage Complexity
DefaultLocaleHolder
0% 
0% 
1.667
 
 1  
 package org.trails.i18n;
 2  
 
 3  
 import java.util.Locale;
 4  
 
 5  
 import org.apache.hivemind.service.ThreadLocale;
 6  
 
 7  0
 public class DefaultLocaleHolder implements LocaleHolder
 8  
 {
 9  
         private ThreadLocale threadLocale;
 10  
 
 11  
         public Locale getLocale()
 12  
         {
 13  0
                 if (getThreadLocale() != null)
 14  
                 {
 15  0
                         return getThreadLocale().getLocale();
 16  
                 }
 17  0
                 return Locale.getDefault();
 18  
         }
 19  
 
 20  
         public ThreadLocale getThreadLocale()
 21  
         {
 22  0
                 return threadLocale;
 23  
         }
 24  
 
 25  
         public void setThreadLocale(ThreadLocale threadLocale)
 26  
         {
 27  0
                 this.threadLocale = threadLocale;
 28  0
         }
 29  
 
 30  
 }