Lines Matching refs:emitter

34  * StandardEmitterMBean(implementation, mbeanInterface, emitter)} to
51 * final NotificationEmitter emitter =
56 * impl, Intf.class, emitter);
70 private final NotificationEmitter emitter;
78 * by forwarding its methods to {@code emitter}. It is legal and useful
79 * for {@code implementation} and {@code emitter} to be the same object.</p>
81 * <p>If {@code emitter} is an instance of {@code
83 * sendNotification} method will call {@code emitter.}{@link
88 * {@code emitter.}{@link NotificationBroadcaster#getNotificationInfo
90 * returned by {@code emitter.getNotificationInfo()} later changes,
96 * @param emitter the object that will handle notifications.
101 * specified interface, or if {@code emitter} is null.
104 NotificationEmitter emitter) {
105 this(implementation, mbeanInterface, false, emitter);
115 * forwarding its methods to {@code emitter}. It is legal and
116 * useful for {@code implementation} and {@code emitter} to be the
119 * <p>If {@code emitter} is an instance of {@code
121 * sendNotification} method will call {@code emitter.}{@link
126 * {@code emitter.}{@link NotificationBroadcaster#getNotificationInfo
128 * returned by {@code emitter.getNotificationInfo()} later changes,
136 * @param emitter the object that will handle notifications.
141 * specified interface, or if {@code emitter} is null.
145 NotificationEmitter emitter) {
147 if (emitter == null)
148 throw new IllegalArgumentException("Null emitter");
149 this.emitter = emitter;
150 MBeanNotificationInfo[] infos = emitter.getNotificationInfo();
163 * by forwarding its methods to {@code emitter}.</p>
165 * <p>If {@code emitter} is an instance of {@code
167 * sendNotification} method will call {@code emitter.}{@link
172 * {@code emitter.}{@link NotificationBroadcaster#getNotificationInfo
174 * returned by {@code emitter.getNotificationInfo()} later changes,
182 * @param emitter the object that will handle notifications.
187 * if {@code emitter} is null.
190 NotificationEmitter emitter) {
191 this(mbeanInterface, false, emitter);
200 * forwarding its methods to {@code emitter}.</p>
202 * <p>If {@code emitter} is an instance of {@code
204 * sendNotification} method will call {@code emitter.}{@link
209 * {@code emitter.}{@link NotificationBroadcaster#getNotificationInfo
211 * returned by {@code emitter.getNotificationInfo()} later changes,
221 * @param emitter the object that will handle notifications.
226 * if {@code emitter} is null.
229 NotificationEmitter emitter) {
231 if (emitter == null)
232 throw new IllegalArgumentException("Null emitter");
233 this.emitter = emitter;
234 MBeanNotificationInfo[] infos = emitter.getNotificationInfo();
244 emitter.removeNotificationListener(listener);
251 emitter.removeNotificationListener(listener, filter, handback);
257 emitter.addNotificationListener(listener, filter, handback);
276 * <p>If the {@code emitter} parameter to the constructor was an
278 * method will call {@code emitter.}{@link
284 * @throws ClassCastException if the {@code emitter} parameter to the
288 if (emitter instanceof NotificationBroadcasterSupport)
289 ((NotificationBroadcasterSupport) emitter).sendNotification(n);
292 "Cannot sendNotification when emitter is not an " +
294 emitter.getClass().getName();