1 25 26 package org.objectweb.easybeans.deployment.annotations.impl; 27 28 import java.lang.annotation.Annotation ; 29 30 import javax.ejb.Remove ; 31 32 36 public class JRemove implements Remove { 37 38 41 private boolean retainIfException = false; 42 43 47 public JRemove() { 48 this(false); 49 } 50 51 56 public JRemove(final boolean retainIfException) { 57 this.retainIfException = retainIfException; 58 } 59 60 63 public boolean retainIfException() { 64 return retainIfException; 65 } 66 67 70 public Class <? extends Annotation > annotationType() { 71 return Remove .class; 72 } 73 74 77 @Override 78 public String toString() { 79 StringBuilder sb = new StringBuilder (); 80 sb.append(this.getClass().getName().substring(this.getClass().getPackage().getName().length() + 1)); 82 sb.append("[retainIfException="); 84 sb.append(retainIfException); 85 86 sb.append("]"); 87 return sb.toString(); 88 } 89 } 90 | Popular Tags |