directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akaras...@apache.org
Subject svn commit: r1073144 - in /directory/shared/branches/akarasulu/ldap-extras/codec/src/main/java/org/apache/directory/shared/ldap/extras: ./ extended/ extended/ads_impl/
Date Mon, 21 Feb 2011 21:25:18 GMT
Author: akarasulu
Date: Mon Feb 21 21:25:18 2011
New Revision: 1073144

URL: http://svn.apache.org/viewvc?rev=1073144&view=rev
Log:
DIRSHARED-86: renaming interfaces after extracting from classes to comply with naming scheme

Added:
    directory/shared/branches/akarasulu/ldap-extras/codec/src/main/java/org/apache/directory/shared/ldap/extras/extended/GracefulShutdownRequest.java
      - copied, changed from r1073143, directory/shared/branches/akarasulu/ldap-extras/codec/src/main/java/org/apache/directory/shared/ldap/extras/extended/IGracefulShutdownRequest.java
    directory/shared/branches/akarasulu/ldap-extras/codec/src/main/java/org/apache/directory/shared/ldap/extras/extended/GracefulShutdownRequestImpl.java
      - copied, changed from r1073143, directory/shared/branches/akarasulu/ldap-extras/codec/src/main/java/org/apache/directory/shared/ldap/extras/extended/GracefulShutdownRequest.java
    directory/shared/branches/akarasulu/ldap-extras/codec/src/main/java/org/apache/directory/shared/ldap/extras/extended/GracefulShutdownResponse.java
      - copied, changed from r1073143, directory/shared/branches/akarasulu/ldap-extras/codec/src/main/java/org/apache/directory/shared/ldap/extras/extended/IGracefulShutdownResponse.java
    directory/shared/branches/akarasulu/ldap-extras/codec/src/main/java/org/apache/directory/shared/ldap/extras/extended/GracefulShutdownResponseImpl.java
      - copied, changed from r1073143, directory/shared/branches/akarasulu/ldap-extras/codec/src/main/java/org/apache/directory/shared/ldap/extras/extended/GracefulShutdownResponse.java
Removed:
    directory/shared/branches/akarasulu/ldap-extras/codec/src/main/java/org/apache/directory/shared/ldap/extras/extended/IGracefulShutdownRequest.java
    directory/shared/branches/akarasulu/ldap-extras/codec/src/main/java/org/apache/directory/shared/ldap/extras/extended/IGracefulShutdownResponse.java
Modified:
    directory/shared/branches/akarasulu/ldap-extras/codec/src/main/java/org/apache/directory/shared/ldap/extras/ExtrasBundleActivator.java
    directory/shared/branches/akarasulu/ldap-extras/codec/src/main/java/org/apache/directory/shared/ldap/extras/extended/ads_impl/GracefulShutdownFactory.java
    directory/shared/branches/akarasulu/ldap-extras/codec/src/main/java/org/apache/directory/shared/ldap/extras/extended/ads_impl/GracefulShutdownRequestDecorator.java
    directory/shared/branches/akarasulu/ldap-extras/codec/src/main/java/org/apache/directory/shared/ldap/extras/extended/ads_impl/GracefulShutdownResponseDecorator.java

Modified: directory/shared/branches/akarasulu/ldap-extras/codec/src/main/java/org/apache/directory/shared/ldap/extras/ExtrasBundleActivator.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/akarasulu/ldap-extras/codec/src/main/java/org/apache/directory/shared/ldap/extras/ExtrasBundleActivator.java?rev=1073144&r1=1073143&r2=1073144&view=diff
==============================================================================
--- directory/shared/branches/akarasulu/ldap-extras/codec/src/main/java/org/apache/directory/shared/ldap/extras/ExtrasBundleActivator.java
(original)
+++ directory/shared/branches/akarasulu/ldap-extras/codec/src/main/java/org/apache/directory/shared/ldap/extras/ExtrasBundleActivator.java
Mon Feb 21 21:25:18 2011
@@ -39,7 +39,7 @@ import org.apache.directory.shared.ldap.
 import org.apache.directory.shared.ldap.extras.extended.GracefulDisconnectResponse;
 import org.apache.directory.shared.ldap.extras.extended.CancelRequest;
 import org.apache.directory.shared.ldap.extras.extended.CertGenerationRequest;
-import org.apache.directory.shared.ldap.extras.extended.IGracefulShutdownRequest;
+import org.apache.directory.shared.ldap.extras.extended.GracefulShutdownRequest;
 import org.apache.directory.shared.ldap.extras.extended.StoredProcedureRequest;
 import org.apache.directory.shared.ldap.extras.extended.ads_impl.CancelFactory;
 import org.apache.directory.shared.ldap.extras.extended.ads_impl.CertGenerationFactory;
@@ -152,7 +152,7 @@ public class ExtrasBundleActivator imple
         
         codec.unregisterExtendedRequest( CancelRequest.EXTENSION_OID );
         codec.unregisterExtendedRequest( CertGenerationRequest.EXTENSION_OID );
-        codec.unregisterExtendedRequest( IGracefulShutdownRequest.EXTENSION_OID );
+        codec.unregisterExtendedRequest( GracefulShutdownRequest.EXTENSION_OID );
         codec.unregisterExtendedRequest( StoredProcedureRequest.EXTENSION_OID );
         
         codec.unregisterUnsolicitedResponse( GracefulDisconnectResponse.EXTENSION_OID );

Copied: directory/shared/branches/akarasulu/ldap-extras/codec/src/main/java/org/apache/directory/shared/ldap/extras/extended/GracefulShutdownRequest.java
(from r1073143, directory/shared/branches/akarasulu/ldap-extras/codec/src/main/java/org/apache/directory/shared/ldap/extras/extended/IGracefulShutdownRequest.java)
URL: http://svn.apache.org/viewvc/directory/shared/branches/akarasulu/ldap-extras/codec/src/main/java/org/apache/directory/shared/ldap/extras/extended/GracefulShutdownRequest.java?p2=directory/shared/branches/akarasulu/ldap-extras/codec/src/main/java/org/apache/directory/shared/ldap/extras/extended/GracefulShutdownRequest.java&p1=directory/shared/branches/akarasulu/ldap-extras/codec/src/main/java/org/apache/directory/shared/ldap/extras/extended/IGracefulShutdownRequest.java&r1=1073143&r2=1073144&rev=1073144&view=diff
==============================================================================
--- directory/shared/branches/akarasulu/ldap-extras/codec/src/main/java/org/apache/directory/shared/ldap/extras/extended/IGracefulShutdownRequest.java
(original)
+++ directory/shared/branches/akarasulu/ldap-extras/codec/src/main/java/org/apache/directory/shared/ldap/extras/extended/GracefulShutdownRequest.java
Mon Feb 21 21:25:18 2011
@@ -32,7 +32,7 @@ import org.apache.directory.shared.ldap.
  * 
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  */
-public interface IGracefulShutdownRequest extends ExtendedRequest<IGracefulShutdownResponse>
+public interface GracefulShutdownRequest extends ExtendedRequest<GracefulShutdownResponse>
 {
 
     /** The OID for the graceful shutdown extended operation request. */

Copied: directory/shared/branches/akarasulu/ldap-extras/codec/src/main/java/org/apache/directory/shared/ldap/extras/extended/GracefulShutdownRequestImpl.java
(from r1073143, directory/shared/branches/akarasulu/ldap-extras/codec/src/main/java/org/apache/directory/shared/ldap/extras/extended/GracefulShutdownRequest.java)
URL: http://svn.apache.org/viewvc/directory/shared/branches/akarasulu/ldap-extras/codec/src/main/java/org/apache/directory/shared/ldap/extras/extended/GracefulShutdownRequestImpl.java?p2=directory/shared/branches/akarasulu/ldap-extras/codec/src/main/java/org/apache/directory/shared/ldap/extras/extended/GracefulShutdownRequestImpl.java&p1=directory/shared/branches/akarasulu/ldap-extras/codec/src/main/java/org/apache/directory/shared/ldap/extras/extended/GracefulShutdownRequest.java&r1=1073143&r2=1073144&rev=1073144&view=diff
==============================================================================
--- directory/shared/branches/akarasulu/ldap-extras/codec/src/main/java/org/apache/directory/shared/ldap/extras/extended/GracefulShutdownRequest.java
(original)
+++ directory/shared/branches/akarasulu/ldap-extras/codec/src/main/java/org/apache/directory/shared/ldap/extras/extended/GracefulShutdownRequestImpl.java
Mon Feb 21 21:25:18 2011
@@ -32,12 +32,12 @@ import org.apache.directory.shared.ldap.
  * 
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  */
-public class GracefulShutdownRequest extends AbstractExtendedRequest<IGracefulShutdownResponse>
implements IGracefulShutdownRequest
+public class GracefulShutdownRequestImpl extends AbstractExtendedRequest<GracefulShutdownResponse>
implements GracefulShutdownRequest
 {
     /** The serialVersionUID. */
     private static final long serialVersionUID = -4682291068700593492L;
 
-    private IGracefulShutdownResponse response;
+    private GracefulShutdownResponse response;
     
     /** Offline time after disconnection */
     private int timeOffline;
@@ -51,7 +51,7 @@ public class GracefulShutdownRequest ext
      *
      * @param messageId the message id
      */
-    public GracefulShutdownRequest( int messageId )
+    public GracefulShutdownRequestImpl( int messageId )
     {
         this( messageId, UNDETERMINED, NOW );
     }
@@ -62,7 +62,7 @@ public class GracefulShutdownRequest ext
      *
      * @param messageId the message id
      */
-    public GracefulShutdownRequest()
+    public GracefulShutdownRequestImpl()
     {
         setRequestName( EXTENSION_OID );
     }
@@ -75,7 +75,7 @@ public class GracefulShutdownRequest ext
      * @param timeOffline the offline time after disconnection, in minutes
      * @param delay the delay before disconnection, in seconds
      */
-    public GracefulShutdownRequest( int messageId, int timeOffline, int delay )
+    public GracefulShutdownRequestImpl( int messageId, int timeOffline, int delay )
     {
         super( messageId );
         setRequestName( EXTENSION_OID );
@@ -126,11 +126,11 @@ public class GracefulShutdownRequest ext
 
 
     @Override
-    public IGracefulShutdownResponse getResultResponse()
+    public GracefulShutdownResponse getResultResponse()
     {
         if ( response == null )
         {
-            response = new GracefulShutdownResponse();
+            response = new GracefulShutdownResponseImpl();
         }
         
         return response;

Copied: directory/shared/branches/akarasulu/ldap-extras/codec/src/main/java/org/apache/directory/shared/ldap/extras/extended/GracefulShutdownResponse.java
(from r1073143, directory/shared/branches/akarasulu/ldap-extras/codec/src/main/java/org/apache/directory/shared/ldap/extras/extended/IGracefulShutdownResponse.java)
URL: http://svn.apache.org/viewvc/directory/shared/branches/akarasulu/ldap-extras/codec/src/main/java/org/apache/directory/shared/ldap/extras/extended/GracefulShutdownResponse.java?p2=directory/shared/branches/akarasulu/ldap-extras/codec/src/main/java/org/apache/directory/shared/ldap/extras/extended/GracefulShutdownResponse.java&p1=directory/shared/branches/akarasulu/ldap-extras/codec/src/main/java/org/apache/directory/shared/ldap/extras/extended/IGracefulShutdownResponse.java&r1=1073143&r2=1073144&rev=1073144&view=diff
==============================================================================
--- directory/shared/branches/akarasulu/ldap-extras/codec/src/main/java/org/apache/directory/shared/ldap/extras/extended/IGracefulShutdownResponse.java
(original)
+++ directory/shared/branches/akarasulu/ldap-extras/codec/src/main/java/org/apache/directory/shared/ldap/extras/extended/GracefulShutdownResponse.java
Mon Feb 21 21:25:18 2011
@@ -5,13 +5,13 @@ import org.apache.directory.shared.ldap.
 
 
 /**
- * The response sent back from the server when a {@link GracefulShutdownRequest}
+ * The response sent back from the server when a {@link GracefulShutdownRequestImpl}
  * extended operation is sent. Delivery of this response may block until all
  * connected clients are sent a GracefulDisconnect unsolicited notification.
  * 
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  */
-public interface IGracefulShutdownResponse extends ExtendedResponse
+public interface GracefulShutdownResponse extends ExtendedResponse
 {
     /** The OID for the graceful shutdown extended operation response. */
     String EXTENSION_OID = "1.3.6.1.4.1.18060.0.1.4";

Copied: directory/shared/branches/akarasulu/ldap-extras/codec/src/main/java/org/apache/directory/shared/ldap/extras/extended/GracefulShutdownResponseImpl.java
(from r1073143, directory/shared/branches/akarasulu/ldap-extras/codec/src/main/java/org/apache/directory/shared/ldap/extras/extended/GracefulShutdownResponse.java)
URL: http://svn.apache.org/viewvc/directory/shared/branches/akarasulu/ldap-extras/codec/src/main/java/org/apache/directory/shared/ldap/extras/extended/GracefulShutdownResponseImpl.java?p2=directory/shared/branches/akarasulu/ldap-extras/codec/src/main/java/org/apache/directory/shared/ldap/extras/extended/GracefulShutdownResponseImpl.java&p1=directory/shared/branches/akarasulu/ldap-extras/codec/src/main/java/org/apache/directory/shared/ldap/extras/extended/GracefulShutdownResponse.java&r1=1073143&r2=1073144&rev=1073144&view=diff
==============================================================================
--- directory/shared/branches/akarasulu/ldap-extras/codec/src/main/java/org/apache/directory/shared/ldap/extras/extended/GracefulShutdownResponse.java
(original)
+++ directory/shared/branches/akarasulu/ldap-extras/codec/src/main/java/org/apache/directory/shared/ldap/extras/extended/GracefulShutdownResponseImpl.java
Mon Feb 21 21:25:18 2011
@@ -26,13 +26,13 @@ import org.apache.directory.shared.ldap.
 
 
 /**
- * The response sent back from the server when a {@link GracefulShutdownRequest}
+ * The response sent back from the server when a {@link GracefulShutdownRequestImpl}
  * extended operation is sent. Delivery of this response may block until all
  * connected clients are sent a GracefulDisconnect unsolicited notification.
  * 
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  */
-public class GracefulShutdownResponse extends ExtendedResponseImpl implements IGracefulShutdownResponse
+public class GracefulShutdownResponseImpl extends ExtendedResponseImpl implements GracefulShutdownResponse
 {
     /** The Constant serialVersionUID. */
     private static final long serialVersionUID = -3824715470944544189L;
@@ -44,7 +44,7 @@ public class GracefulShutdownResponse ex
      * @param messageId the message id
      * @param rcode the result code
      */
-    public GracefulShutdownResponse( int messageId, ResultCodeEnum rcode )
+    public GracefulShutdownResponseImpl( int messageId, ResultCodeEnum rcode )
     {
         super( messageId, EXTENSION_OID );
 
@@ -74,7 +74,7 @@ public class GracefulShutdownResponse ex
      *
      * @param messageId the message id
      */
-    public GracefulShutdownResponse( int messageId )
+    public GracefulShutdownResponseImpl( int messageId )
     {
         super( messageId, EXTENSION_OID );
         super.getLdapResult().setMatchedDn( null );
@@ -85,7 +85,7 @@ public class GracefulShutdownResponse ex
     /**
      * Instantiates a new graceful shutdown response.
      */
-    public GracefulShutdownResponse()
+    public GracefulShutdownResponseImpl()
     {
         super( EXTENSION_OID );
         super.getLdapResult().setMatchedDn( null );
@@ -148,6 +148,6 @@ public class GracefulShutdownResponse ex
             return true;
         }
 
-        return ( obj instanceof GracefulShutdownResponse );
+        return ( obj instanceof GracefulShutdownResponseImpl );
     }
 }

Modified: directory/shared/branches/akarasulu/ldap-extras/codec/src/main/java/org/apache/directory/shared/ldap/extras/extended/ads_impl/GracefulShutdownFactory.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/akarasulu/ldap-extras/codec/src/main/java/org/apache/directory/shared/ldap/extras/extended/ads_impl/GracefulShutdownFactory.java?rev=1073144&r1=1073143&r2=1073144&view=diff
==============================================================================
--- directory/shared/branches/akarasulu/ldap-extras/codec/src/main/java/org/apache/directory/shared/ldap/extras/extended/ads_impl/GracefulShutdownFactory.java
(original)
+++ directory/shared/branches/akarasulu/ldap-extras/codec/src/main/java/org/apache/directory/shared/ldap/extras/extended/ads_impl/GracefulShutdownFactory.java
Mon Feb 21 21:25:18 2011
@@ -23,10 +23,10 @@ package org.apache.directory.shared.ldap
 import org.apache.directory.shared.asn1.DecoderException;
 import org.apache.directory.shared.ldap.codec.api.ExtendedRequestFactory;
 import org.apache.directory.shared.ldap.codec.api.LdapCodecService;
+import org.apache.directory.shared.ldap.extras.extended.GracefulShutdownRequestImpl;
+import org.apache.directory.shared.ldap.extras.extended.GracefulShutdownResponseImpl;
 import org.apache.directory.shared.ldap.extras.extended.GracefulShutdownRequest;
 import org.apache.directory.shared.ldap.extras.extended.GracefulShutdownResponse;
-import org.apache.directory.shared.ldap.extras.extended.IGracefulShutdownRequest;
-import org.apache.directory.shared.ldap.extras.extended.IGracefulShutdownResponse;
 
 
 /**
@@ -36,7 +36,7 @@ import org.apache.directory.shared.ldap.
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  */
 public class GracefulShutdownFactory 
-    implements ExtendedRequestFactory<IGracefulShutdownRequest, IGracefulShutdownResponse>
+    implements ExtendedRequestFactory<GracefulShutdownRequest, GracefulShutdownResponse>
 {
     private LdapCodecService codec;
     
@@ -52,26 +52,26 @@ public class GracefulShutdownFactory 
      */
     public String getOid()
     {
-        return IGracefulShutdownRequest.EXTENSION_OID;
+        return GracefulShutdownRequest.EXTENSION_OID;
     }
 
     
     /**
      * {@inheritDoc}
      */
-    public IGracefulShutdownRequest newRequest()
+    public GracefulShutdownRequest newRequest()
     {
-        return new GracefulShutdownRequest();
+        return new GracefulShutdownRequestImpl();
     }
 
 
     /**
      * {@inheritDoc}
      */
-    public IGracefulShutdownResponse newResponse( byte[] encodedValue ) throws DecoderException
+    public GracefulShutdownResponse newResponse( byte[] encodedValue ) throws DecoderException
     {
         GracefulShutdownResponseDecorator response = new GracefulShutdownResponseDecorator(

-            codec, new GracefulShutdownResponse() );
+            codec, new GracefulShutdownResponseImpl() );
         response.setResponseValue( encodedValue );
         return response;
     }

Modified: directory/shared/branches/akarasulu/ldap-extras/codec/src/main/java/org/apache/directory/shared/ldap/extras/extended/ads_impl/GracefulShutdownRequestDecorator.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/akarasulu/ldap-extras/codec/src/main/java/org/apache/directory/shared/ldap/extras/extended/ads_impl/GracefulShutdownRequestDecorator.java?rev=1073144&r1=1073143&r2=1073144&view=diff
==============================================================================
--- directory/shared/branches/akarasulu/ldap-extras/codec/src/main/java/org/apache/directory/shared/ldap/extras/extended/ads_impl/GracefulShutdownRequestDecorator.java
(original)
+++ directory/shared/branches/akarasulu/ldap-extras/codec/src/main/java/org/apache/directory/shared/ldap/extras/extended/ads_impl/GracefulShutdownRequestDecorator.java
Mon Feb 21 21:25:18 2011
@@ -25,8 +25,8 @@ import org.apache.directory.shared.asn1.
 import org.apache.directory.shared.i18n.I18n;
 import org.apache.directory.shared.ldap.codec.api.ExtendedRequestDecorator;
 import org.apache.directory.shared.ldap.codec.api.LdapCodecService;
-import org.apache.directory.shared.ldap.extras.extended.IGracefulShutdownRequest;
-import org.apache.directory.shared.ldap.extras.extended.IGracefulShutdownResponse;
+import org.apache.directory.shared.ldap.extras.extended.GracefulShutdownRequest;
+import org.apache.directory.shared.ldap.extras.extended.GracefulShutdownResponse;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
@@ -36,8 +36,8 @@ import org.slf4j.LoggerFactory;
  *
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  */
-public class GracefulShutdownRequestDecorator extends ExtendedRequestDecorator<IGracefulShutdownRequest,IGracefulShutdownResponse>

-    implements IGracefulShutdownRequest
+public class GracefulShutdownRequestDecorator extends ExtendedRequestDecorator<GracefulShutdownRequest,GracefulShutdownResponse>

+    implements GracefulShutdownRequest
 {
     private static final Logger LOG = LoggerFactory.getLogger( GracefulShutdownRequestDecorator.class
);
     
@@ -48,7 +48,7 @@ public class GracefulShutdownRequestDeco
      * @param codec
      * @param decoratedMessage
      */
-    public GracefulShutdownRequestDecorator( LdapCodecService codec, IGracefulShutdownRequest
decoratedMessage )
+    public GracefulShutdownRequestDecorator( LdapCodecService codec, GracefulShutdownRequest
decoratedMessage )
     {
         super( codec, decoratedMessage );
     }

Modified: directory/shared/branches/akarasulu/ldap-extras/codec/src/main/java/org/apache/directory/shared/ldap/extras/extended/ads_impl/GracefulShutdownResponseDecorator.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/akarasulu/ldap-extras/codec/src/main/java/org/apache/directory/shared/ldap/extras/extended/ads_impl/GracefulShutdownResponseDecorator.java?rev=1073144&r1=1073143&r2=1073144&view=diff
==============================================================================
--- directory/shared/branches/akarasulu/ldap-extras/codec/src/main/java/org/apache/directory/shared/ldap/extras/extended/ads_impl/GracefulShutdownResponseDecorator.java
(original)
+++ directory/shared/branches/akarasulu/ldap-extras/codec/src/main/java/org/apache/directory/shared/ldap/extras/extended/ads_impl/GracefulShutdownResponseDecorator.java
Mon Feb 21 21:25:18 2011
@@ -22,7 +22,7 @@ package org.apache.directory.shared.ldap
 
 import org.apache.directory.shared.ldap.codec.api.ExtendedResponseDecorator; 
 import org.apache.directory.shared.ldap.codec.api.LdapCodecService;
-import org.apache.directory.shared.ldap.extras.extended.IGracefulShutdownResponse;
+import org.apache.directory.shared.ldap.extras.extended.GracefulShutdownResponse;
 
 
 /**
@@ -30,7 +30,7 @@ import org.apache.directory.shared.ldap.
  *
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  */
-public class GracefulShutdownResponseDecorator extends ExtendedResponseDecorator<IGracefulShutdownResponse>
implements IGracefulShutdownResponse
+public class GracefulShutdownResponseDecorator extends ExtendedResponseDecorator<GracefulShutdownResponse>
implements GracefulShutdownResponse
 {
     /**
      * Creates a new instance of CancelResponseDecorator.
@@ -38,7 +38,7 @@ public class GracefulShutdownResponseDec
      * @param codec
      * @param decoratedMessage
      */
-    public GracefulShutdownResponseDecorator( LdapCodecService codec, IGracefulShutdownResponse
decoratedMessage )
+    public GracefulShutdownResponseDecorator( LdapCodecService codec, GracefulShutdownResponse
decoratedMessage )
     {
         super( codec, decoratedMessage );
     }



Mime
View raw message