Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.jboss.resteasy.cdi.util;
 
 
 import  javax.enterprise.context.ApplicationScoped;


Author(s):
Ron Sigal
Version:
$Revision: 1.1 $ Copyright May 8, 2012
@ApplicationScoped
public class Counter
   public static final int INITIAL_VALUE = 17;
   private static AtomicInteger counter = new AtomicInteger();
   
   public int getNext()
   {
      ..println("In Counter: counter: " + );
      return .getAndIncrement();
   }
   
   public void reset()
   {
   }
New to GrepCode? Check out our FAQ X