From 64afb3e53f74b2ec78cacb377858cb092e3a4e9b Mon Sep 17 00:00:00 2001
From: neil_a_wilson <neil_a_wilson@localhost>
Date: Thu, 16 Aug 2007 00:36:48 +0000
Subject: [PATCH] Update package-info.java files to include the @PublicAPI annotation to indicate whether any or all of the classes in that package are intended to be part of the public API. Further, mark all classes that we intend to be part of the public API with the @PublicAPI annotation to indicate the ways in which they may be used. Note that the use of these annotations and the ultimate determination as to what is in our public API and the ways in which those elements may be used still needs to be carefully reviewed before the 1.0 release.
---
opendj-sdk/opends/src/server/org/opends/server/api/DebugLogPublisher.java | 27 +++++++++++++++++----------
1 files changed, 17 insertions(+), 10 deletions(-)
diff --git a/opendj-sdk/opends/src/server/org/opends/server/api/DebugLogPublisher.java b/opendj-sdk/opends/src/server/org/opends/server/api/DebugLogPublisher.java
index a8b2e1c..0b16bb1 100644
--- a/opendj-sdk/opends/src/server/org/opends/server/api/DebugLogPublisher.java
+++ b/opendj-sdk/opends/src/server/org/opends/server/api/DebugLogPublisher.java
@@ -56,6 +56,11 @@
* @param <T> The type of debug log publisher configuration handled
* by this log publisher implementation.
*/
+@org.opends.server.types.PublicAPI(
+ stability=org.opends.server.types.StabilityLevel.VOLATILE,
+ mayInstantiate=false,
+ mayExtend=true,
+ mayInvoke=false)
public abstract class DebugLogPublisher
<T extends DebugLogPublisherCfg>
{
@@ -151,7 +156,8 @@
* or {@code null} if no method-level tracing is configured
* for the scope.
*/
- public Map<String,TraceSettings> getMethodSettings(String className)
+ public final Map<String,TraceSettings> getMethodSettings(
+ String className)
{
if(methodTraceSettings == null)
{
@@ -173,7 +179,7 @@
*
* @return The current trace settings for the class.
*/
- public TraceSettings getClassSettings(String className)
+ public final TraceSettings getClassSettings(String className)
{
TraceSettings settings = TraceSettings.DISABLED;
@@ -221,7 +227,8 @@
* global scope.
* @param settings The trace settings for the specified scope.
*/
- public void addTraceSettings(String scope, TraceSettings settings)
+ public final void addTraceSettings(String scope,
+ TraceSettings settings)
{
if (scope == null) {
setClassSettings(GLOBAL, settings);
@@ -254,7 +261,7 @@
* {@code null} if no trace setting is defined for that
* scope.
*/
- public TraceSettings getTraceSettings(String scope)
+ public final TraceSettings getTraceSettings(String scope)
{
if (scope == null) {
if(classTraceSettings != null)
@@ -304,7 +311,7 @@
* {@code null} if no trace setting is defined for that
* scope.
*/
- public TraceSettings removeTraceSettings(String scope)
+ public final TraceSettings removeTraceSettings(String scope)
{
TraceSettings removedSettings = null;
if (scope == null) {
@@ -351,8 +358,8 @@
* @param className The class name.
* @param settings The trace settings for the class.
*/
- private synchronized void setClassSettings(String className,
- TraceSettings settings)
+ private synchronized final void setClassSettings(String className,
+ TraceSettings settings)
{
if(classTraceSettings == null) classTraceSettings =
new HashMap<String, TraceSettings>();
@@ -369,9 +376,9 @@
* @param methodName The method name.
* @param settings The trace settings for the method.
*/
- private synchronized void setMethodSettings(String className,
- String methodName,
- TraceSettings settings)
+ private synchronized final void setMethodSettings(String className,
+ String methodName,
+ TraceSettings settings)
{
if (methodTraceSettings == null) methodTraceSettings =
new HashMap<String, Map<String, TraceSettings>>();
--
Gitblit v1.10.0