directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pamarce...@apache.org
Subject svn commit: r1075706 - in /directory/studio/branches/milestones/plugins/connection.core: pom.xml src/main/java/org/apache/directory/studio/connection/core/io/api/DirectoryApiConnectionWrapper.java
Date Tue, 01 Mar 2011 08:42:08 GMT
Author: pamarcelot
Date: Tue Mar  1 08:42:07 2011
New Revision: 1075706

URL: http://svn.apache.org/viewvc?rev=1075706&view=rev
Log:
Nasty hack to get the 'org.apache.directory.shared.ldap.protocol.codec' bundle started.

Modified:
    directory/studio/branches/milestones/plugins/connection.core/pom.xml
    directory/studio/branches/milestones/plugins/connection.core/src/main/java/org/apache/directory/studio/connection/core/io/api/DirectoryApiConnectionWrapper.java

Modified: directory/studio/branches/milestones/plugins/connection.core/pom.xml
URL: http://svn.apache.org/viewvc/directory/studio/branches/milestones/plugins/connection.core/pom.xml?rev=1075706&r1=1075705&r2=1075706&view=diff
==============================================================================
--- directory/studio/branches/milestones/plugins/connection.core/pom.xml (original)
+++ directory/studio/branches/milestones/plugins/connection.core/pom.xml Tue Mar  1 08:42:07
2011
@@ -112,6 +112,7 @@
  org.apache.directory.shared.ldap.client.api;bundle-version="${org.apache.directory.shared.validversion}",
  org.apache.directory.shared.ldap.codec.core;bundle-version="${org.apache.directory.shared.validversion}",
  org.apache.directory.shared.ldap.model;bundle-version="${org.apache.directory.shared.validversion}",
+ org.apache.directory.shared.ldap.protocol.codec;bundle-version="${org.apache.directory.shared.validversion}",
  org.apache.directory.shared.util;bundle-version="${org.apache.directory.shared.validversion}",
  org.apache.directory.studio.common.core,
  org.apache.directory.studio.ldifparser,
@@ -170,6 +171,11 @@
     </dependency>
     <dependency>
       <groupId>org.apache.directory.shared</groupId>
+      <artifactId>shared-ldap-protocol-codec</artifactId>
+      <scope>provided</scope>
+    </dependency>
+    <dependency>
+      <groupId>org.apache.directory.shared</groupId>
       <artifactId>shared-util</artifactId>
       <scope>provided</scope>
     </dependency>

Modified: directory/studio/branches/milestones/plugins/connection.core/src/main/java/org/apache/directory/studio/connection/core/io/api/DirectoryApiConnectionWrapper.java
URL: http://svn.apache.org/viewvc/directory/studio/branches/milestones/plugins/connection.core/src/main/java/org/apache/directory/studio/connection/core/io/api/DirectoryApiConnectionWrapper.java?rev=1075706&r1=1075705&r2=1075706&view=diff
==============================================================================
--- directory/studio/branches/milestones/plugins/connection.core/src/main/java/org/apache/directory/studio/connection/core/io/api/DirectoryApiConnectionWrapper.java
(original)
+++ directory/studio/branches/milestones/plugins/connection.core/src/main/java/org/apache/directory/studio/connection/core/io/api/DirectoryApiConnectionWrapper.java
Tue Mar  1 08:42:07 2011
@@ -46,6 +46,7 @@ import org.apache.directory.ldap.client.
 import org.apache.directory.ldap.client.api.LdapConnectionConfig;
 import org.apache.directory.ldap.client.api.LdapNetworkConnection;
 import org.apache.directory.ldap.client.api.exception.InvalidConnectionException;
+import org.apache.directory.shared.ldap.codec.protocol.mina.LdapProtocolCodecFactory;
 import org.apache.directory.shared.ldap.model.cursor.SearchCursor;
 import org.apache.directory.shared.ldap.model.entry.AttributeUtils;
 import org.apache.directory.shared.ldap.model.entry.DefaultModification;
@@ -131,6 +132,13 @@ public class DirectoryApiConnectionWrapp
     public DirectoryApiConnectionWrapper( Connection connection )
     {
         this.connection = connection;
+
+        // Nasty hack to get the 'org.apache.directory.shared.ldap.protocol.codec'
+        // bundle started.
+        // Instantiating one of this bundle class will trigger the start of the bundle
+        // thanks to the lazy activation policy
+        // DO NOT REMOVE
+        new LdapProtocolCodecFactory();
     }
 
 



Mime
View raw message