Oracle Coherence for C++ API
Release 3.7.1.0
E22845-01
00001 /* 00002 * AbstractMapListener.hpp 00003 * 00004 * Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved. 00005 * 00006 * Oracle is a registered trademarks of Oracle Corporation and/or its 00007 * affiliates. 00008 * 00009 * This software is the confidential and proprietary information of Oracle 00010 * Corporation. You shall not disclose such confidential and proprietary 00011 * information and shall use it only in accordance with the terms of the 00012 * license agreement you entered into with Oracle. 00013 * 00014 * This notice may not be removed or altered. 00015 */ 00016 #ifndef COH_ABSTRACT_MAP_LISTENER_HPP 00017 #define COH_ABSTRACT_MAP_LISTENER_HPP 00018 00019 #include "coherence/lang.ns" 00020 00021 #include "coherence/util/MapEvent.hpp" 00022 #include "coherence/util/MapListener.hpp" 00023 00024 COH_OPEN_NAMESPACE2(coherence,util) 00025 00026 00027 /** 00028 * A base class that simplifies the implementation of a MapListener, 00029 * particularly inner classes that only implement one or two of the 00030 * three event methods. 00031 * 00032 * @author tb 2008.06.16 00033 */ 00034 class COH_EXPORT AbstractMapListener 00035 : public abstract_spec<AbstractMapListener, 00036 extends<Object>, 00037 implements<MapListener> > 00038 { 00039 // ----- MapListener interface ------------------------------------------ 00040 00041 public: 00042 /** 00043 * {@inheritDoc} 00044 */ 00045 virtual void entryInserted(MapEvent::View vEvent); 00046 00047 /** 00048 * {@inheritDoc} 00049 */ 00050 virtual void entryUpdated(MapEvent::View vEvent); 00051 00052 /** 00053 * {@inheritDoc} 00054 */ 00055 virtual void entryDeleted(MapEvent::View vEvent); 00056 }; 00057 00058 COH_CLOSE_NAMESPACE2 00059 00060 #endif // COH_ABSTRACT_MAP_LISTENER_HPP 00061