1 25 26 package org.objectweb.easybeans.deployment.annotations.impl; 27 28 import java.util.ArrayList ; 29 import java.util.List ; 30 31 32 36 public class JInterceptors { 37 38 41 private List <String > classes = null; 42 43 46 public JInterceptors() { 47 classes = new ArrayList <String >(); 48 } 49 50 54 public void addClass(final String cls) { 55 classes.add(cls); 56 } 57 58 61 public List <String > getClasses() { 62 return classes; 63 } 64 65 69 public boolean contains(final String cls) { 70 return classes.contains(cls); 71 } 72 73 76 @Override 77 public String toString() { 78 StringBuilder sb = new StringBuilder (); 79 sb.append(this.getClass().getName().substring(this.getClass().getPackage().getName().length() + 1)); 81 82 sb.append(classes); 84 return sb.toString(); 85 } 86 87 } 88 | Popular Tags |