Author: mstruk
Date: 2012-02-03 11:15:24 -0500 (Fri, 03 Feb 2012)
New Revision: 8395
Modified:
portal/trunk/component/resources/src/main/java/org/exoplatform/services/resources/impl/LocaleConfigImpl.java
portal/trunk/component/resources/src/main/java/org/exoplatform/services/resources/impl/LocaleConfigServiceImpl.java
Log:
GTNPORTAL-2278 Enable customization of LocaleConfig service by extending existing
implementations
Modified:
portal/trunk/component/resources/src/main/java/org/exoplatform/services/resources/impl/LocaleConfigImpl.java
===================================================================
---
portal/trunk/component/resources/src/main/java/org/exoplatform/services/resources/impl/LocaleConfigImpl.java 2012-02-03
14:55:14 UTC (rev 8394)
+++
portal/trunk/component/resources/src/main/java/org/exoplatform/services/resources/impl/LocaleConfigImpl.java 2012-02-03
16:15:24 UTC (rev 8395)
@@ -68,49 +68,49 @@
{
}
- public final String getDescription()
+ public String getDescription()
{
return description_;
}
- public final void setDescription(String desc)
+ public void setDescription(String desc)
{
description_ = desc;
}
- public final String getOutputEncoding()
+ public String getOutputEncoding()
{
return outputEncoding_;
}
- public final void setOutputEncoding(String enc)
+ public void setOutputEncoding(String enc)
{
outputEncoding_ = enc;
}
- public final String getInputEncoding()
+ public String getInputEncoding()
{
return inputEncoding_;
}
- public final void setInputEncoding(String enc)
+ public void setInputEncoding(String enc)
{
inputEncoding_ = enc;
}
- public final Locale getLocale()
+ public Locale getLocale()
{
return locale_;
}
- public final void setLocale(Locale locale)
+ public void setLocale(Locale locale)
{
locale_ = locale;
if (localeName_ == null)
localeName_ = locale.getLanguage();
}
- public final void setLocale(String localeName)
+ public void setLocale(String localeName)
{
localeName_ = localeName;
locale_ = predefinedLocaleMap_.get(localeName);
@@ -134,17 +134,17 @@
return tagIdentifier_;
}
- public final String getLanguage()
+ public String getLanguage()
{
return locale_.getLanguage();
}
- public final String getLocaleName()
+ public String getLocaleName()
{
return localeName_;
}
- public final void setLocaleName(String localeName)
+ public void setLocaleName(String localeName)
{
localeName_ = localeName;
}
Modified:
portal/trunk/component/resources/src/main/java/org/exoplatform/services/resources/impl/LocaleConfigServiceImpl.java
===================================================================
---
portal/trunk/component/resources/src/main/java/org/exoplatform/services/resources/impl/LocaleConfigServiceImpl.java 2012-02-03
14:55:14 UTC (rev 8394)
+++
portal/trunk/component/resources/src/main/java/org/exoplatform/services/resources/impl/LocaleConfigServiceImpl.java 2012-02-03
16:15:24 UTC (rev 8395)
@@ -100,7 +100,7 @@
return configs_.values();
}
- private void parseConfiguration(InputStream is) throws Exception
+ protected void parseConfiguration(InputStream is) throws Exception
{
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
factory.setIgnoringComments(true);
Show replies by date