From 887d477fa8daf523b8411461451968d2c58274f4 Mon Sep 17 00:00:00 2001
From: matthew_swift <matthew_swift@localhost>
Date: Mon, 14 Jan 2008 10:43:58 +0000
Subject: [PATCH] Partial fix for issue 2661 - public APIs must not reference private classes.
---
opends/resource/admin/serverMO.xsl | 15 +++++----------
1 files changed, 5 insertions(+), 10 deletions(-)
diff --git a/opends/resource/admin/serverMO.xsl b/opends/resource/admin/serverMO.xsl
index 1d5adb9..7fe2aff 100644
--- a/opends/resource/admin/serverMO.xsl
+++ b/opends/resource/admin/serverMO.xsl
@@ -22,7 +22,7 @@
! CDDL HEADER END
!
!
- ! Portions Copyright 2007 Sun Microsystems, Inc.
+ ! Portions Copyright 2007-2008 Sun Microsystems, Inc.
! -->
<xsl:stylesheet version="1.0" xmlns:adm="http://www.opends.org/admin"
xmlns:admpp="http://www.opends.org/admin-preprocessor"
@@ -63,17 +63,17 @@
<xsl:text>{
</xsl:text>
</xsl:template>
<!--
- Template for generating the configuration definition getter.
+ Template for generating the configuration class getter.
-->
<xsl:template name="generate-configuration-definition-getter">
<xsl:value-of
select="concat(' /**
',
- ' * Get the configuration definition associated with this ', $this-ufn, '.
',
+ ' * Gets the configuration class associated with this ', $this-ufn, '.
',
' *
',
- ' * @return Returns the configuration definition associated with this ', $this-ufn, '.
',
+ ' * @return Returns the configuration class associated with this ', $this-ufn, '.
',
' */
')" />
<xsl:value-of
- select="concat(' ManagedObjectDefinition<? extends ', $this-java-class,'CfgClient, ? extends ', $this-java-class,'Cfg> definition();
')" />
+ select="concat(' Class<? extends ', $this-java-class,'Cfg> configurationClass();
')" />
</xsl:template>
<!--
Template for generating the change listener declaration.
@@ -346,10 +346,6 @@
<xsl:text>
</xsl:text>
<xsl:call-template name="generate-import-statements">
<xsl:with-param name="imports">
- <xsl:element name="import">
- <xsl:value-of
- select="concat($this-package, '.client.', $this-java-class, 'CfgClient')" />
- </xsl:element>
<xsl:for-each select="$this-local-properties">
<xsl:call-template name="get-property-java-imports" >
<xsl:with-param name="interface" select="'server'" />
@@ -388,7 +384,6 @@
org.opends.server.admin.server.ConfigurationDeleteListener
</import>
</xsl:if>
- <import>org.opends.server.admin.ManagedObjectDefinition</import>
</xsl:with-param>
</xsl:call-template>
<xsl:text>
</xsl:text>
--
Gitblit v1.10.0