1 22 23 package org.jboss.aop.util.reference; 24 25 import java.lang.ref.WeakReference ; 26 27 34 public abstract class ArgumentPersistentReference extends PersistentReference 35 { 36 public ArgumentPersistentReference(Class clazz, Object referencedObject, int referenceType) { 37 super(clazz, referencedObject, referenceType); 38 } 39 40 WeakReference [] arguments; 41 42 public void setArguments(Class [] parguments) 43 { 44 this.arguments = new WeakReference [parguments.length]; 45 for (int i=0;i<arguments.length;i++) 46 { 47 this.arguments[i] = new WeakReference (parguments[i]); 48 } 49 } 50 51 public Class [] getArguments() 52 { 53 if (arguments==null) 54 { 55 return null; 56 } 57 else 58 { 59 Class argumentsReturn[] = new Class [arguments.length]; 60 for (int i=0;i<arguments.length;i++) 61 { 62 argumentsReturn[i] = (Class )arguments[i].get(); 63 } 64 return argumentsReturn; 65 } 66 } 67 68 69 } 70 | Popular Tags |