1 23 package com.sun.enterprise.deployment; 24 25 import java.util.List ; 26 import java.util.LinkedList ; 27 28 import java.lang.reflect.Method ; 29 30 public class InjectionInfo { 31 32 private List <InjectionCapable> injectionResources; 33 34 private String postConstructMethodName; 37 38 private Method postConstructMethod; 41 42 private String preDestroyMethodName; 45 46 private Method preDestroyMethod; 49 50 private String className; 51 52 public InjectionInfo() { 53 } 54 55 public InjectionInfo(String cName, String postmName, String premName, 56 List <InjectionCapable> resources) { 57 className = cName; 58 postConstructMethodName = postmName; 59 preDestroyMethodName = premName; 60 injectionResources = resources; 61 } 62 63 public List <InjectionCapable> getInjectionResources() { 64 if (injectionResources == null) { 65 injectionResources = new LinkedList <InjectionCapable>(); 66 } 67 return injectionResources; 68 } 69 70 public void setInjectionResources(List <InjectionCapable> resources) { 71 injectionResources = resources; 72 } 73 74 public String getPostConstructMethodName() { 75 return postConstructMethodName; 76 } 77 78 public void setPostConstructMethodName(String methodName) { 79 postConstructMethodName = methodName; 80 } 81 82 public Method getPostConstructMethod() { 83 return postConstructMethod; 84 } 85 86 public void setPostConstructMethod(Method method) { 87 postConstructMethod = method; 88 } 89 90 public String getPreDestroyMethodName() { 91 return preDestroyMethodName; 92 } 93 94 public Method getPreDestroyMethod() { 95 return preDestroyMethod; 96 } 97 98 public void setPreDestroyMethod(Method method) { 99 preDestroyMethod = method; 100 } 101 102 public String getClassName() { 103 return className; 104 } 105 106 public void setClassName(String name) { 107 className = name; 108 } 109 } 110 | Popular Tags |