directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akaras...@apache.org
Subject svn commit: r1075152 - /directory/shared/branches/akarasulu/ldap-protocol-codec/src/main/java/org/apache/directory/shared/ldap/codec/protocol/mina/DefaultActivator.java
Date Sun, 27 Feb 2011 21:32:01 GMT
Author: akarasulu
Date: Sun Feb 27 21:32:00 2011
New Revision: 1075152

URL: http://svn.apache.org/viewvc?rev=1075152&view=rev
Log:
adding an activator for the shared-ldap-protocol-codec bundle

Added:
    directory/shared/branches/akarasulu/ldap-protocol-codec/src/main/java/org/apache/directory/shared/ldap/codec/protocol/mina/DefaultActivator.java
      - copied, changed from r1075133, directory/shared/branches/akarasulu/ldap-codec/src/main/java/org/apache/directory/shared/ldap/codec/osgi/DefaultActivator.java

Copied: directory/shared/branches/akarasulu/ldap-protocol-codec/src/main/java/org/apache/directory/shared/ldap/codec/protocol/mina/DefaultActivator.java
(from r1075133, directory/shared/branches/akarasulu/ldap-codec/src/main/java/org/apache/directory/shared/ldap/codec/osgi/DefaultActivator.java)
URL: http://svn.apache.org/viewvc/directory/shared/branches/akarasulu/ldap-protocol-codec/src/main/java/org/apache/directory/shared/ldap/codec/protocol/mina/DefaultActivator.java?p2=directory/shared/branches/akarasulu/ldap-protocol-codec/src/main/java/org/apache/directory/shared/ldap/codec/protocol/mina/DefaultActivator.java&p1=directory/shared/branches/akarasulu/ldap-codec/src/main/java/org/apache/directory/shared/ldap/codec/osgi/DefaultActivator.java&r1=1075133&r2=1075152&rev=1075152&view=diff
==============================================================================
--- directory/shared/branches/akarasulu/ldap-codec/src/main/java/org/apache/directory/shared/ldap/codec/osgi/DefaultActivator.java
(original)
+++ directory/shared/branches/akarasulu/ldap-protocol-codec/src/main/java/org/apache/directory/shared/ldap/codec/protocol/mina/DefaultActivator.java
Sun Feb 27 21:32:00 2011
@@ -17,10 +17,9 @@
  *   under the License.
  *
  */
-package org.apache.directory.shared.ldap.codec.osgi;
+package org.apache.directory.shared.ldap.codec.protocol.mina;
 
 
-import org.apache.directory.shared.ldap.codec.api.LdapCodecService;
 import org.apache.directory.shared.ldap.codec.api.LdapCodecServiceFactory;
 import org.osgi.framework.BundleActivator;
 import org.osgi.framework.BundleContext;
@@ -35,14 +34,14 @@ import org.osgi.framework.ServiceRegistr
 @SuppressWarnings({"UnusedDeclaration"})
 public class DefaultActivator implements BundleActivator
 {
-    private DefaultLdapCodecService codec;
+    private LdapProtocolCodecFactory factory;
     private ServiceRegistration registration;
 
 
     @SuppressWarnings({"UnusedDeclaration"})
     public DefaultActivator()
     {
-        this.codec = new DefaultLdapCodecService();
+        this.factory = new LdapProtocolCodecFactory();
     }
     
     
@@ -51,8 +50,8 @@ public class DefaultActivator implements
      */
     public void start( BundleContext bundleContext ) throws Exception
     {
-        registration = bundleContext.registerService( LdapCodecService.class.getName(), codec,
null );
-        LdapCodecServiceFactory.initialize( codec );
+        registration = bundleContext.registerService( LdapProtocolCodecFactory.class.getName(),
factory, null );
+        LdapCodecServiceFactory.getSingleton().registerProtocolCodecFactory( factory );
     }
     
 



Mime
View raw message