Skip to content

Commit

Permalink
update to latest impl - mainly using 330 annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
rogerk committed Sep 3, 2009
1 parent 7c44b7f commit 18c4bb3
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
Expand Up @@ -6,7 +6,8 @@
import javax.annotation.PostConstruct;
import javax.enterprise.context.SessionScoped;
import javax.enterprise.inject.Instance;
import javax.enterprise.inject.Named;
import javax.inject.Inject;
import javax.inject.Named;
import javax.faces.application.FacesMessage;
import javax.faces.component.UIComponent;
import javax.faces.component.UIInput;
Expand All @@ -23,13 +24,13 @@ public class Game implements Serializable
private int guess;
private int smallest;

@MaxNumber
@MaxNumber @Inject
private int maxNumber;

private int biggest;
private int remainingGuesses;

@Random Instance<Integer> randomNumber;
@Random @Inject Instance<Integer> randomNumber;

public Game()
{
Expand Down
Expand Up @@ -11,12 +11,12 @@
import java.lang.annotation.Retention;
import java.lang.annotation.Target;

import javax.enterprise.inject.BindingType;
import javax.inject.Qualifier;

@Target( { TYPE, METHOD, PARAMETER, FIELD })
@Retention(RUNTIME)
@Documented
@BindingType
@Qualifier
public @interface MaxNumber
{

Expand Down
Expand Up @@ -11,12 +11,12 @@
import java.lang.annotation.Retention;
import java.lang.annotation.Target;

import javax.enterprise.inject.BindingType;
import javax.inject.Qualifier;

@Target( { TYPE, METHOD, PARAMETER, FIELD })
@Retention(RUNTIME)
@Documented
@BindingType
@Qualifier
public @interface Random
{

Expand Down

0 comments on commit 18c4bb3

Please sign in to comment.