From 047432559933543c058e5dd40250dbcd47d06c67 Mon Sep 17 00:00:00 2001
From: neil_a_wilson <neil_a_wilson@localhost>
Date: Sat, 07 Oct 2006 19:57:47 +0000
Subject: [PATCH] Add a new ByteStringFactory class that can be used to create ByteString objects without needing to reference any classes outside of the public API.  Also, update several classes that should use the public API to use the ByteStringFactory rather than creating ASN1OctetString objects.

---
 opendj-sdk/opends/src/server/org/opends/server/protocols/asn1/ASN1OctetString.java |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/opendj-sdk/opends/src/server/org/opends/server/protocols/asn1/ASN1OctetString.java b/opendj-sdk/opends/src/server/org/opends/server/protocols/asn1/ASN1OctetString.java
index d524cad..c977a77 100644
--- a/opendj-sdk/opends/src/server/org/opends/server/protocols/asn1/ASN1OctetString.java
+++ b/opendj-sdk/opends/src/server/org/opends/server/protocols/asn1/ASN1OctetString.java
@@ -42,6 +42,14 @@
 /**
  * This class defines the data structures and methods to use when interacting
  * with ASN.1 octet string elements.
+ * <BR><BR>
+ * Note that this class also implements the <CODE>ByteString</CODE> interface,
+ * but in most cases whenever it is necessary to create an instance of a
+ * <CODE>ByteString</CODE> object, the caller should use one of the
+ * <CODE>ByteStringFactory.create</CODE> methods rather than creating an
+ * <CODE>ASN1OctetString</CODE> object directly.  In general, direct references
+ * to ASN.1 elements should be limited to cases in which ASN.1 is actually
+ * involved.
  */
 public class ASN1OctetString
        extends ASN1Element

--
Gitblit v1.10.0