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

E26041-01

coherence/lang/annotation/Inherited.hpp

00001 /*
00002 * Inherited.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_INHERITED_HPP
00017 #define COH_INHERITED_HPP
00018 
00019 #include "coherence/lang/compatibility.hpp"
00020 
00021 #include "coherence/lang/annotation/AbstractAnnotation.hpp"
00022 #include "coherence/lang/class_spec.hpp"
00023 
00024 COH_OPEN_NAMESPACE3(coherence,lang,annotation)
00025 
00026 /**
00027  * The Inherited annotation is used to annotate annotations in order to
00028  * indicate that the annotation is to be automatically inherited by derived
00029  * AnnotationElements.
00030  *
00031  * @author mf  2011.03.03
00032  *
00033  * @since Coherence 3.7.1
00034  */
00035 class COH_EXPORT Inherited
00036     : public class_spec<Inherited,
00037           extends<AbstractAnnotation> >
00038     {
00039     friend class factory<Inherited>;
00040 
00041     // ----- constructors ---------------------------------------------------
00042 
00043     protected:
00044         /**
00045         * @internal
00046         */
00047         using this_spec::create;
00048 
00049 
00050     // ----- constants ------------------------------------------------------
00051 
00052     public:
00053         /**
00054          * Return a singleton instance of the Inherited Annotation.
00055          */
00056         static Inherited::View getInstance();
00057     };
00058 
00059 COH_CLOSE_NAMESPACE3
00060 
00061 #endif // COH_INHERITED_HPP
Copyright © 2000, 2013, Oracle and/or its affiliates. All rights reserved.