Oracle Fusion Middleware C++ API Reference for Oracle Coherence
12c (12.1.2)

E26041-01

coherence/lang/Annotation.hpp

00001 /*
00002 * Annotation.hpp
00003 *
00004 * Copyright (c) 2000, 2013, 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_ANNOTATION_HPP
00017 #define COH_ANNOTATION_HPP
00018 
00019 #include "coherence/lang/compatibility.hpp"
00020 
00021 #include "coherence/lang/interface_spec.hpp"
00022 
00023 #include <ostream>
00024 
00025 COH_OPEN_NAMESPACE2(coherence, lang)
00026 
00027 // ----- forward declarations -----------------------------------------------
00028 
00029 class Class;
00030 
00031 /**
00032  * Annotation is the common interface extended by all annotation types.
00033  *
00034  * @author mf  2011.03.01
00035  *
00036  * @Since Coherence 3.7.1
00037  */
00038 class COH_EXPORT Annotation
00039     : public interface_spec<Annotation>
00040     {
00041     // ----- Annotation interface -------------------------------------------
00042 
00043     public:
00044         /**
00045          * Return the annotation type of this annotation.
00046          */
00047         virtual TypedHandle<const Class> annotationType() const = 0;
00048     };
00049 
00050 COH_CLOSE_NAMESPACE2
00051 
00052 #endif // COH_ANNOTATION_HPP
Copyright © 2000, 2013, Oracle and/or its affiliates. All rights reserved.