1 22 package org.jboss.ejb3.metamodel; 23 24 import java.util.ArrayList ; 25 import java.util.List ; 26 27 import org.jboss.metamodel.descriptor.EnvironmentRefGroup; 28 import org.jboss.metamodel.descriptor.PersistenceUnitRef; 29 import org.jboss.metamodel.descriptor.PersistenceContextRef; 30 31 36 public class Interceptor 37 extends EnvironmentRefGroup implements Injectable 38 { 39 String interceptorClass; 40 Method aroundInvoke; 41 Method postConstruct; 42 Method postActivate; 43 Method preDestroy; 44 Method prePassivate; 45 46 public Interceptor() 47 { 48 } 49 50 public Method getAroundInvoke() 51 { 52 return aroundInvoke; 53 } 54 55 public void setAroundInvoke(Method aroundInvoke) 56 { 57 this.aroundInvoke = aroundInvoke; 58 } 59 60 public String getInterceptorClass() 61 { 62 return interceptorClass; 63 } 64 65 public void setInterceptorClass(String interceptorClass) 66 { 67 this.interceptorClass = interceptorClass; 68 } 69 70 public Method getPostActivate() 71 { 72 return postActivate; 73 } 74 75 public void setPostActivate(Method postActivate) 76 { 77 this.postActivate = postActivate; 78 } 79 80 public Method getPostConstruct() 81 { 82 return postConstruct; 83 } 84 85 public void setPostConstruct(Method postConstruct) 86 { 87 this.postConstruct = postConstruct; 88 } 89 90 public Method getPreDestroy() 91 { 92 return preDestroy; 93 } 94 95 public void setPreDestroy(Method preDestroy) 96 { 97 this.preDestroy = preDestroy; 98 } 99 100 public Method getPrePassivate() 101 { 102 return prePassivate; 103 } 104 105 public void setPrePassivate(Method prePassivate) 106 { 107 this.prePassivate = prePassivate; 108 } 109 110 private List <PersistenceContextRef> persistenceContextRefs = new ArrayList <PersistenceContextRef>(); 111 private List <PersistenceUnitRef> persistenceUnitRefs = new ArrayList <PersistenceUnitRef>(); 112 113 public List <PersistenceContextRef> getPersistenceContextRefs() 114 { 115 return persistenceContextRefs; 116 } 117 118 public List <PersistenceUnitRef> getPersistenceUnitRefs() 119 { 120 return persistenceUnitRefs; 121 } 122 123 public void addPersistenceContextRef(PersistenceContextRef ref) 124 { 125 persistenceContextRefs.add(ref); 126 } 127 128 public void addPersistenceUnitRef(PersistenceUnitRef ref) 129 { 130 persistenceUnitRefs.add(ref); 131 } 132 133 } 134 | Popular Tags |