From d211e727d826c909aa562bb195696cde4b33e902 Mon Sep 17 00:00:00 2001
From: matthew_swift <matthew_swift@localhost>
Date: Thu, 30 Aug 2007 14:07:45 +0000
Subject: [PATCH] Update the package-info stylesheet so that it generates a suitable PublicAPI annotation for generated packages:

---
 opends/resource/admin/package-info.xsl |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/opends/resource/admin/package-info.xsl b/opends/resource/admin/package-info.xsl
index 535bd56..9170df2 100644
--- a/opends/resource/admin/package-info.xsl
+++ b/opends/resource/admin/package-info.xsl
@@ -48,7 +48,7 @@
           <xsl:with-param name="content"
             select="concat('Provides introspection interfaces for the ',
                            normalize-space(adm:package/adm:synopsis),
-                           ' This package provides programmatic access to ',
+                           ' This package provides access to meta-',
                            'information about the managed objects, their ',
                            'properties, their relationships with other ',
                            'managed objects, and their inheritance model.')" />
@@ -88,6 +88,11 @@
       </xsl:otherwise>
     </xsl:choose>
     <xsl:value-of select="' */&#xa;'" />
+    <xsl:value-of select="concat('@org.opends.server.types.PublicAPI(&#xa;',
+                                 '    stability=org.opends.server.types.StabilityLevel.VOLATILE,&#xa;',
+                                 '    mayInstantiate=false,&#xa;',
+                                 '    mayExtend=false,&#xa;',
+                                 '    mayInvoke=true)&#xa;')"/>
     <xsl:value-of
       select="concat('package ', adm:package/@name, '.', $type, ';&#xa;')" />
   </xsl:template>

--
Gitblit v1.10.0