[seam-commits] Seam SVN: r10574 - modules/trunk/international/src/main/java/org/jboss/seam/international.
seam-commits at lists.jboss.org
seam-commits at lists.jboss.org
Wed Apr 22 02:41:03 EDT 2009
Author: shane.bryzak at jboss.com
Date: 2009-04-22 02:41:02 -0400 (Wed, 22 Apr 2009)
New Revision: 10574
Removed:
modules/trunk/international/src/main/java/org/jboss/seam/international/TimeZone.java
Modified:
modules/trunk/international/src/main/java/org/jboss/seam/international/TimeZoneSelector.java
Log:
removed redundant class
Deleted: modules/trunk/international/src/main/java/org/jboss/seam/international/TimeZone.java
===================================================================
--- modules/trunk/international/src/main/java/org/jboss/seam/international/TimeZone.java 2009-04-22 06:23:34 UTC (rev 10573)
+++ modules/trunk/international/src/main/java/org/jboss/seam/international/TimeZone.java 2009-04-22 06:41:02 UTC (rev 10574)
@@ -1,36 +0,0 @@
-package org.jboss.seam.international;
-
-import static org.jboss.seam.annotations.Install.BUILT_IN;
-
-import org.jboss.seam.Component;
-import org.jboss.seam.ScopeType;
-import org.jboss.seam.annotations.Install;
-import org.jboss.seam.annotations.Name;
-import org.jboss.seam.annotations.Scope;
-import org.jboss.seam.annotations.Unwrap;
-import org.jboss.seam.annotations.intercept.BypassInterceptors;
-
-/**
- * Manager component for the current user's locale
- *
- * @author Gavin King
- */
- at Scope(ScopeType.STATELESS)
- at Name("org.jboss.seam.international.timeZone")
- at BypassInterceptors
- at Install(precedence=BUILT_IN, dependencies="org.jboss.seam.international.timeZoneSelector")
-public class TimeZone
-{
-
- @Unwrap
- public java.util.TimeZone getTimeZone()
- {
- return TimeZoneSelector.instance().getTimeZone();
- }
-
- public static java.util.TimeZone instance()
- {
- return (java.util.TimeZone) Component.getInstance(TimeZone.class, ScopeType.STATELESS);
- }
-
-}
Modified: modules/trunk/international/src/main/java/org/jboss/seam/international/TimeZoneSelector.java
===================================================================
--- modules/trunk/international/src/main/java/org/jboss/seam/international/TimeZoneSelector.java 2009-04-22 06:23:34 UTC (rev 10573)
+++ modules/trunk/international/src/main/java/org/jboss/seam/international/TimeZoneSelector.java 2009-04-22 06:41:02 UTC (rev 10574)
@@ -2,9 +2,11 @@
import static org.jboss.seam.annotations.Install.BUILT_IN;
+import javax.annotation.Named;
import javax.context.SessionScoped;
import javax.faces.event.ValueChangeEvent;
import javax.inject.Initializer;
+import javax.inject.Produces;
import org.jboss.seam.core.Events;
import org.jboss.seam.faces.Selector;
@@ -79,7 +81,7 @@
/**
* Get the selected timezone
*/
- public java.util.TimeZone getTimeZone()
+ @Produces @Named public java.util.TimeZone getTimeZone()
{
if (id==null)
{
More information about the seam-commits
mailing list