NotificationHolder.java revision 394
340N/A/*
340N/A * CDDL HEADER START
340N/A *
340N/A * The contents of this file are subject to the terms of the
340N/A * Common Development and Distribution License (the "License").
340N/A * You may not use this file except in compliance with the License.
340N/A *
340N/A * See LICENSE.txt included in this distribution for the specific
340N/A * language governing permissions and limitations under the License.
340N/A *
340N/A * When distributing Covered Code, include this CDDL HEADER in each
340N/A * file and include the License file at LICENSE.txt.
340N/A * If applicable, add the following below this CDDL HEADER, with the
340N/A * fields enclosed by brackets "[]" replaced with your own identifying
340N/A * information: Portions Copyright [yyyy] [name of copyright owner]
340N/A *
340N/A * CDDL HEADER END
340N/A */
340N/A
340N/A/*
340N/A * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
340N/A * Use is subject to license terms.
340N/A */
340N/Apackage org.opensolaris.opengrok.management;
340N/A
394N/Aimport javax.management.NotificationFilter;
340N/Aimport javax.management.NotificationListener;
340N/A
340N/A/**
340N/A * @author Jan S Berg
340N/A */
340N/Apublic class NotificationHolder {
340N/A
340N/A private NotificationListener notl = null;
340N/A private Object obNL = null;
340N/A private NotificationFilter nfilt = null;
340N/A
340N/A public NotificationHolder(NotificationListener nl, NotificationFilter nf, Object obj) {
340N/A notl = nl;
340N/A obNL = obj;
340N/A nfilt = nf;
340N/A }
340N/A
340N/A public NotificationListener getNL() {
340N/A return notl;
340N/A }
340N/A
340N/A public Object getObj() {
340N/A return obNL;
340N/A }
340N/A
340N/A public NotificationFilter getFilter() {
340N/A return nfilt;
340N/A }
340N/A}