src/share/classes/java/beans/EventSetDescriptor.java

Print this page
rev 10053 : 8044855: Add missing @since tag under java.beans.*
Reviewed-by:


  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 package java.beans;
  27 
  28 import java.lang.ref.Reference;
  29 import java.lang.reflect.Method;
  30 import java.lang.reflect.Modifier;
  31 
  32 /**
  33  * An EventSetDescriptor describes a group of events that a given Java
  34  * bean fires.
  35  * <P>
  36  * The given group of events are all delivered as method calls on a single
  37  * event listener interface, and an event listener object can be registered
  38  * via a call on a registration method supplied by the event source.


  39  */
  40 public class EventSetDescriptor extends FeatureDescriptor {
  41 
  42     private MethodDescriptor[] listenerMethodDescriptors;
  43     private MethodDescriptor addMethodDescriptor;
  44     private MethodDescriptor removeMethodDescriptor;
  45     private MethodDescriptor getMethodDescriptor;
  46 
  47     private Reference<Method[]> listenerMethodsRef;
  48     private Reference<? extends Class<?>> listenerTypeRef;
  49 
  50     private boolean unicast;
  51     private boolean inDefaultEventSet = true;
  52 
  53     /**
  54      * Creates an <TT>EventSetDescriptor</TT> assuming that you are
  55      * following the most simple standard design pattern where a named
  56      * event &quot;fred&quot; is (1) delivered as a call on the single method of
  57      * interface FredListener, (2) has a single argument of type FredEvent,
  58      * and (3) where the FredListener may be registered with a call on an




  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 package java.beans;
  27 
  28 import java.lang.ref.Reference;
  29 import java.lang.reflect.Method;
  30 import java.lang.reflect.Modifier;
  31 
  32 /**
  33  * An EventSetDescriptor describes a group of events that a given Java
  34  * bean fires.
  35  * <P>
  36  * The given group of events are all delivered as method calls on a single
  37  * event listener interface, and an event listener object can be registered
  38  * via a call on a registration method supplied by the event source.
  39  *
  40  * @since 1.1
  41  */
  42 public class EventSetDescriptor extends FeatureDescriptor {
  43 
  44     private MethodDescriptor[] listenerMethodDescriptors;
  45     private MethodDescriptor addMethodDescriptor;
  46     private MethodDescriptor removeMethodDescriptor;
  47     private MethodDescriptor getMethodDescriptor;
  48 
  49     private Reference<Method[]> listenerMethodsRef;
  50     private Reference<? extends Class<?>> listenerTypeRef;
  51 
  52     private boolean unicast;
  53     private boolean inDefaultEventSet = true;
  54 
  55     /**
  56      * Creates an <TT>EventSetDescriptor</TT> assuming that you are
  57      * following the most simple standard design pattern where a named
  58      * event &quot;fred&quot; is (1) delivered as a call on the single method of
  59      * interface FredListener, (2) has a single argument of type FredEvent,
  60      * and (3) where the FredListener may be registered with a call on an