1 25 package org.objectweb.easybeans.tests.common.resources; 26 27 32 public class Watcher { 33 34 37 private Exception exp; 38 39 42 private static Watcher instance; 43 44 48 public static Watcher getInstance(){ 49 if (instance==null){ 50 instance = new Watcher(); 51 } 52 return instance; 53 } 54 55 56 60 public synchronized Exception getException() { 61 return exp; 62 } 63 64 65 69 public synchronized void setException(final Exception e) { 70 this.exp = e; 71 } 72 73 } 74 | Popular Tags |