All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jboss.cdi.tck.tests.event.observer.context.async.Counter Maven / Gradle / Ivy

There is a newer version: 2.0.5.SP1
Show newest version
package org.jboss.cdi.tck.tests.event.observer.context.async;

import java.util.concurrent.atomic.AtomicInteger;

import javax.enterprise.context.RequestScoped;

@RequestScoped
public class Counter {

    private AtomicInteger count = new AtomicInteger();

    public void increment() {
        count.incrementAndGet();
    }

    public AtomicInteger getCount() {
        return count;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy