directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ersi...@apache.org
Subject svn commit: r414858 - /directory/trunks/apacheds/core/src/main/java/org/apache/directory/server/core/trigger/DeleteStoredProcedureParameterInjector.java
Date Fri, 16 Jun 2006 16:35:26 GMT
Author: ersiner
Date: Fri Jun 16 09:35:25 2006
New Revision: 414858

URL: http://svn.apache.org/viewvc?rev=414858&view=rev
Log:
Made the delete injector class immutable.
However it's not reusable now. We need to elaborate on this.

Modified:
    directory/trunks/apacheds/core/src/main/java/org/apache/directory/server/core/trigger/DeleteStoredProcedureParameterInjector.java

Modified: directory/trunks/apacheds/core/src/main/java/org/apache/directory/server/core/trigger/DeleteStoredProcedureParameterInjector.java
URL: http://svn.apache.org/viewvc/directory/trunks/apacheds/core/src/main/java/org/apache/directory/server/core/trigger/DeleteStoredProcedureParameterInjector.java?rev=414858&r1=414857&r2=414858&view=diff
==============================================================================
--- directory/trunks/apacheds/core/src/main/java/org/apache/directory/server/core/trigger/DeleteStoredProcedureParameterInjector.java
(original)
+++ directory/trunks/apacheds/core/src/main/java/org/apache/directory/server/core/trigger/DeleteStoredProcedureParameterInjector.java
Fri Jun 16 09:35:25 2006
@@ -34,15 +34,11 @@
     
     private Map injectors;
     
-    public DeleteStoredProcedureParameterInjector()
-    {        
+    public DeleteStoredProcedureParameterInjector( LdapDN deletedEntryName )
+    {
         injectors = super.getInjectors();
         injectors.put( DeleteStoredProcedureParameter.NAME, $nameInjector );
         injectors.put( DeleteStoredProcedureParameter.DELETED_ENTRY, $deletedEntryInjector
);
-    }
-    
-    public void setDeletedEntryName( LdapDN deletedEntryName )
-    {
         this.deletedEntryName = deletedEntryName;
     }
     
@@ -50,7 +46,7 @@
     {
         public Object inject() throws NamingException
         {
-            return deletedEntryName;
+            return deletedEntryName; // LdapDN is still a Name
         };
     };
     



Mime
View raw message