blob: 3ec6ef16b42a15c707158a3a40883c3d17aafde6 [file] [log] [blame]
Stuart McCulloch26e7a5a2011-10-17 10:31:43 +00001package aQute.bnd.service;
2
3import java.io.*;
4import java.util.concurrent.atomic.*;
5
6public class BndListener {
7 final AtomicInteger inside = new AtomicInteger();
8
9 public void changed(File file) {
10 }
11 public void begin() { inside.incrementAndGet();}
12 public void end() { inside.decrementAndGet(); }
13
14 public boolean isInside() {
15 return inside.get()!=0;
16 }
17}