1 package org.apache.beehive.controls.runtime.packaging; 2 3 import java.beans.EventSetDescriptor ; 4 import java.beans.IntrospectionException ; 5 import java.beans.MethodDescriptor ; 6 import java.lang.ref.Reference ; 7 import java.lang.ref.SoftReference ; 8 import java.lang.reflect.Method ; 9 10 18 public class ControlEventSetDescriptor extends EventSetDescriptor 19 { 20 23 public ControlEventSetDescriptor(String eventSetName, Class <?> listenerType, 24 MethodDescriptor [] listenerMethodDescriptors, 25 Method addListenerMethod, Method removeListenerMethod, 26 Method getListenerMethod) 27 throws IntrospectionException 28 { 29 super(eventSetName, listenerType, listenerMethodDescriptors, 30 addListenerMethod, removeListenerMethod); 31 32 _getMethodRef = new SoftReference <Method >(getListenerMethod); 35 } 36 37 41 public Method getGetListenerMethod() 42 { 43 if (_getMethodRef == null) 44 return null; 45 46 return _getMethodRef.get(); 47 } 48 49 Reference <Method > _getMethodRef; 50 } 51 | Popular Tags |