1 /* 2 * Copyright 2003, 2004 The Apache Software Foundation 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 package org.apache.ws.jaxme; 18 19 /** <p>An Observer is the corresponding interface to the 20 * <code>Observable</code>: The Observer is watching the 21 * Observable.</p> 22 * <p>If the Observable changes its state, it calls the 23 * Observers <code>setObservableState()</code> method.</p> 24 * 25 * @author <a HREF="mailto:joe@ispsoft.de">Jochen Wiedmann</a> 26 * @version $Id: Observer.java,v 1.4 2004/07/23 07:18:05 jochen Exp $ 27 */ 28 public interface Observer { 29 /** <p>The Observable indicates that its state has 30 * changed. The Observer must inspect the Observable 31 * to detect what exactly has changed. 32 */ 33 public void notify(Object pObject); 34 } 35