directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ersi...@apache.org
Subject svn commit: r345541 - /directory/sandbox/ersiner/apacheds-with-storedprocs/core/src/main/java/org/apache/ldap/server/storedprocs/JNDIClassLoader.java
Date Fri, 18 Nov 2005 19:06:04 GMT
Author: ersiner
Date: Fri Nov 18 11:05:59 2005
New Revision: 345541

URL: http://svn.apache.org/viewcvs?rev=345541&view=rev
Log:
White space cleanup. (New IDE...)

Modified:
    directory/sandbox/ersiner/apacheds-with-storedprocs/core/src/main/java/org/apache/ldap/server/storedprocs/JNDIClassLoader.java

Modified: directory/sandbox/ersiner/apacheds-with-storedprocs/core/src/main/java/org/apache/ldap/server/storedprocs/JNDIClassLoader.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/ersiner/apacheds-with-storedprocs/core/src/main/java/org/apache/ldap/server/storedprocs/JNDIClassLoader.java?rev=345541&r1=345540&r2=345541&view=diff
==============================================================================
--- directory/sandbox/ersiner/apacheds-with-storedprocs/core/src/main/java/org/apache/ldap/server/storedprocs/JNDIClassLoader.java
(original)
+++ directory/sandbox/ersiner/apacheds-with-storedprocs/core/src/main/java/org/apache/ldap/server/storedprocs/JNDIClassLoader.java
Fri Nov 18 11:05:59 2005
@@ -15,6 +15,7 @@
  *
  */
 
+
 package org.apache.ldap.server.storedprocs;
 
 
@@ -27,46 +28,46 @@
 
 
 /**
- * A class loader that loads classes from any directory service accessed via JNDI.
- *
+ * A class loader that loads classes from any directory service accessed via
+ * JNDI.
+ * 
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  * @version $Rev: $
  */
 public class JNDIClassLoader extends ClassLoader
 {
-	DirContext ctx;
-	String dn;
-	
-	public JNDIClassLoader( DirContext ctx, String dn )
-	{
-		this.ctx = ctx;
-		this.dn = dn;
-	}
-	
-	public Class findClass( String name )
-	{
+    DirContext ctx;
+    String dn;
+
+    public JNDIClassLoader( DirContext ctx, String dn )
+    {
+        this.ctx = ctx;
+        this.dn = dn;
+    }
+
+    public Class findClass( String name )
+    {
         byte[] b = null;
-        
+
         try
         {
-			b = loadClassData( name );
-		}
-        catch ( IOException e )
-		{
-			e.printStackTrace();
-		}
-		catch ( NamingException e )
-		{
-			e.printStackTrace();
-		}
-		
+            b = loadClassData( name );
+        } catch ( IOException e )
+        {
+            e.printStackTrace();
+        }
+        catch ( NamingException e )
+        {
+            e.printStackTrace();
+        }
+
         return defineClass( name, b, 0, b.length );
     }
 
-    private byte[] loadClassData( String name ) throws IOException, NamingException
+    private byte[] loadClassData(String name) throws IOException, NamingException
     {
-    	Attributes javaClassEntry = ctx.getAttributes( "fqcn=" + name + "," + dn );
-    	Attribute javaByteCode = javaClassEntry.get( "byteCode" );
-    	return ( byte[] ) javaByteCode.get();
+        Attributes javaClassEntry = ctx.getAttributes( "fqcn=" + name + "," + dn );
+        Attribute javaByteCode = javaClassEntry.get( "byteCode" );
+        return ( byte[] ) javaByteCode.get();
     }
 }



Mime
View raw message