Skip to content

Commit

Permalink
better
Browse files Browse the repository at this point in the history
  • Loading branch information
pmuir committed Jun 16, 2010
1 parent 058ecce commit 1e9781b
Showing 1 changed file with 5 additions and 7 deletions.
Expand Up @@ -25,7 +25,6 @@
import java.util.Collections;
import java.util.List;

import javax.annotation.PostConstruct;
import javax.enterprise.context.ApplicationScoped;
import javax.enterprise.inject.Produces;
import javax.inject.Named;
Expand All @@ -35,22 +34,21 @@ public class ThemeManager
{

// The supported themes
private final List<String> THEMES = new ArrayList<String>();
private final List<String> themes;

@SuppressWarnings("unused")
@PostConstruct
private void populateThemes()
public ThemeManager()
{
this.themes = new ArrayList<String>();
for (Theme theme : Theme.values())
{
THEMES.add(theme.getName());
this.themes.add(theme.getName());
}
}

@Produces @Named
public List<String> getThemes()
{
return Collections.unmodifiableList(THEMES);
return Collections.unmodifiableList(themes);
}

}

0 comments on commit 1e9781b

Please sign in to comment.