directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akaras...@apache.org
Subject svn commit: rev 56417 - in incubator/directory/ldap/trunk/common/src/java/org/apache/ldap/common/message: . spi
Date Tue, 02 Nov 2004 21:17:58 GMT
Author: akarasulu
Date: Tue Nov  2 13:17:54 2004
New Revision: 56417

Added:
   incubator/directory/ldap/trunk/common/src/java/org/apache/ldap/common/message/spi/ProviderEncoder.java
      - copied, changed from rev 56405, incubator/directory/ldap/trunk/common/src/java/org/apache/ldap/common/message/spi/EncoderProvider.java
Removed:
   incubator/directory/ldap/trunk/common/src/java/org/apache/ldap/common/message/spi/EncoderProvider.java
Modified:
   incubator/directory/ldap/trunk/common/src/java/org/apache/ldap/common/message/MessageDecoder.java
   incubator/directory/ldap/trunk/common/src/java/org/apache/ldap/common/message/MessageEncoder.java
   incubator/directory/ldap/trunk/common/src/java/org/apache/ldap/common/message/spi/Provider.java
   incubator/directory/ldap/trunk/common/src/java/org/apache/ldap/common/message/spi/ProviderDecoder.java
Log:
Changes ...

 o renaming EncoderProvider to ProviderEncoder to fall in line
 o fixed a few things too like the correct signatures



Modified: incubator/directory/ldap/trunk/common/src/java/org/apache/ldap/common/message/MessageDecoder.java
==============================================================================
--- incubator/directory/ldap/trunk/common/src/java/org/apache/ldap/common/message/MessageDecoder.java
(original)
+++ incubator/directory/ldap/trunk/common/src/java/org/apache/ldap/common/message/MessageDecoder.java
Tue Nov  2 13:17:54 2004
@@ -95,7 +95,7 @@
      * @return the populated Message representing the PDU envelope.
      * @throws MessageException if there is a problem decoding.
      */
-    public Message decode( final Object lock, final InputStream in ) throws MessageException
+    public Object decode( final Object lock, final InputStream in ) throws MessageException
     {
         Object providerEnvelope = null;
 

Modified: incubator/directory/ldap/trunk/common/src/java/org/apache/ldap/common/message/MessageEncoder.java
==============================================================================
--- incubator/directory/ldap/trunk/common/src/java/org/apache/ldap/common/message/MessageEncoder.java
(original)
+++ incubator/directory/ldap/trunk/common/src/java/org/apache/ldap/common/message/MessageEncoder.java
Tue Nov  2 13:17:54 2004
@@ -26,7 +26,7 @@
 import org.apache.commons.codec.stateful.EncoderMonitor;
 
 import org.apache.ldap.common.message.spi.Provider;
-import org.apache.ldap.common.message.spi.EncoderProvider;
+import org.apache.ldap.common.message.spi.ProviderEncoder;
 import org.apache.ldap.common.message.spi.TransformerSpi;
 import org.apache.ldap.common.message.spi.ProviderException;
 
@@ -38,12 +38,12 @@
  * @author <a href="mailto:directory-dev@incubator.apache.org">Apache Directory Project</a>
  * @version $Rev: 56106 $
  */
-public final class MessageEncoder implements EncoderProvider
+public final class MessageEncoder implements ProviderEncoder
 {
     /** the provider */
     private final Provider provider;
     /** the provider's encoder */
-    private final EncoderProvider encoder;
+    private final ProviderEncoder encoder;
     /** the provider's transformer */
     private final TransformerSpi transformer;
 
@@ -81,7 +81,7 @@
 
 
     /**
-     * @see EncoderProvider#encodeBlocking(Object, java.io.OutputStream, Object)
+     * @see ProviderEncoder#encodeBlocking(Object, java.io.OutputStream, Object)
      */
     public void encodeBlocking( Object lock, OutputStream out, Object obj ) throws ProviderException
     {
@@ -94,7 +94,7 @@
 
 
     /**
-     * @see EncoderProvider#encodeBlocking(Object)
+     * @see ProviderEncoder#encodeBlocking(Object)
      */
     public ByteBuffer encodeBlocking( Object obj ) throws ProviderException
     {

Modified: incubator/directory/ldap/trunk/common/src/java/org/apache/ldap/common/message/spi/Provider.java
==============================================================================
--- incubator/directory/ldap/trunk/common/src/java/org/apache/ldap/common/message/spi/Provider.java
(original)
+++ incubator/directory/ldap/trunk/common/src/java/org/apache/ldap/common/message/spi/Provider.java
Tue Nov  2 13:17:54 2004
@@ -312,7 +312,7 @@
      * @return the provider's encoder.
      * @throws ProviderException if the provider or its encoder cannot be found
      */
-    public abstract EncoderProvider getEncoder() throws ProviderException ;
+    public abstract ProviderEncoder getEncoder() throws ProviderException ;
 
 
     /**

Modified: incubator/directory/ldap/trunk/common/src/java/org/apache/ldap/common/message/spi/ProviderDecoder.java
==============================================================================
--- incubator/directory/ldap/trunk/common/src/java/org/apache/ldap/common/message/spi/ProviderDecoder.java
(original)
+++ incubator/directory/ldap/trunk/common/src/java/org/apache/ldap/common/message/spi/ProviderDecoder.java
Tue Nov  2 13:17:54 2004
@@ -247,5 +247,5 @@
      * exceptions encountered while decoding can be held within this subclass
      * of MultiException.
      */
-    Message decode( Object lock, InputStream in ) throws ProviderException;
+    Object decode( Object lock, InputStream in ) throws ProviderException;
 }

Copied: incubator/directory/ldap/trunk/common/src/java/org/apache/ldap/common/message/spi/ProviderEncoder.java
(from rev 56405, incubator/directory/ldap/trunk/common/src/java/org/apache/ldap/common/message/spi/EncoderProvider.java)
==============================================================================
--- incubator/directory/ldap/trunk/common/src/java/org/apache/ldap/common/message/spi/EncoderProvider.java
(original)
+++ incubator/directory/ldap/trunk/common/src/java/org/apache/ldap/common/message/spi/ProviderEncoder.java
Tue Nov  2 13:17:54 2004
@@ -31,7 +31,7 @@
  * @author <a href="mailto:directory-dev@incubator.apache.org"> Apache Directory Project</a>
  * @version $Rev$
  */
-public interface EncoderProvider extends ProviderObject, StatefulEncoder
+public interface ProviderEncoder extends ProviderObject, StatefulEncoder
 {
     /**
      * Encodes a compiler stub specific ASN.1 message envelope containment tree

Mime
View raw message