Author: mstruk
Date: 2012-02-03 11:17:58 -0500 (Fri, 03 Feb 2012)
New Revision: 8396
Modified:
epp/portal/branches/EPP_5_2_Branch/component/resources/src/main/java/org/exoplatform/services/resources/impl/LocaleConfigImpl.java
epp/portal/branches/EPP_5_2_Branch/component/resources/src/main/java/org/exoplatform/services/resources/impl/LocaleConfigServiceImpl.java
Log:
JBEPP-1369 Enable customization of LocaleConfig service by extending existing
implementations
Modified:
epp/portal/branches/EPP_5_2_Branch/component/resources/src/main/java/org/exoplatform/services/resources/impl/LocaleConfigImpl.java
===================================================================
---
epp/portal/branches/EPP_5_2_Branch/component/resources/src/main/java/org/exoplatform/services/resources/impl/LocaleConfigImpl.java 2012-02-03
16:15:24 UTC (rev 8395)
+++
epp/portal/branches/EPP_5_2_Branch/component/resources/src/main/java/org/exoplatform/services/resources/impl/LocaleConfigImpl.java 2012-02-03
16:17:58 UTC (rev 8396)
@@ -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:
epp/portal/branches/EPP_5_2_Branch/component/resources/src/main/java/org/exoplatform/services/resources/impl/LocaleConfigServiceImpl.java
===================================================================
---
epp/portal/branches/EPP_5_2_Branch/component/resources/src/main/java/org/exoplatform/services/resources/impl/LocaleConfigServiceImpl.java 2012-02-03
16:15:24 UTC (rev 8395)
+++
epp/portal/branches/EPP_5_2_Branch/component/resources/src/main/java/org/exoplatform/services/resources/impl/LocaleConfigServiceImpl.java 2012-02-03
16:17:58 UTC (rev 8396)
@@ -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