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