001/* 002 * The contents of this file are subject to the terms of the Common Development and 003 * Distribution License (the License). You may not use this file except in compliance with the 004 * License. 005 * 006 * You can obtain a copy of the License at legal/CDDLv1.0.txt. See the License for the 007 * specific language governing permission and limitations under the License. 008 * 009 * When distributing Covered Software, include this CDDL Header Notice in each file and include 010 * the License file at legal/CDDLv1.0.txt. If applicable, add the following below the CDDL 011 * Header, with the fields enclosed by brackets [] replaced by your own identifying 012 * information: "Portions Copyright [year] [name of copyright owner]". 013 * 014 * Copyright 2008 Sun Microsystems, Inc. 015 */ 016 017package org.opends.guitools.controlpanel.event; 018 019import org.opends.guitools.controlpanel.datamodel.ServerDescriptor; 020 021/** 022 * The event that describes a change in the configuration. It will be created 023 * in ControlCenterInfo when the configuration is read and there has been a 024 * modification between the newly read configuration and the configuration we 025 * read previously. 026 * 027 */ 028public class ConfigurationChangeEvent 029{ 030 private Object source; 031 private ServerDescriptor newDescriptor; 032 033 /** 034 * Constructor for the event. 035 * @param source the source of this event. 036 * @param newDescriptor the object describing the new configuration. 037 */ 038 public ConfigurationChangeEvent(Object source, ServerDescriptor newDescriptor) 039 { 040 this.source = source; 041 this.newDescriptor = newDescriptor; 042 } 043 044 /** 045 * Returns the object describing the new configuration. 046 * @return the object describing the new configuration. 047 */ 048 public ServerDescriptor getNewDescriptor() 049 { 050 return newDescriptor; 051 } 052 053 /** 054 * Returns the source of the event. 055 * @return the source of the event. 056 */ 057 public Object getSource() 058 { 059 return source; 060 } 061}