directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a..@apache.org
Subject svn commit: r232909 - /directory/asn1/branches/ber-decoder/modules/runtime/src/java/org/apache/asn1/encoding/EncodingFactoryDefault.java
Date Mon, 15 Aug 2005 23:55:29 GMT
Author: adc
Date: Mon Aug 15 16:55:24 2005
New Revision: 232909

URL: http://svn.apache.org/viewcvs?rev=232909&view=rev
Log:
Use new root for encodings.

Modified:
    directory/asn1/branches/ber-decoder/modules/runtime/src/java/org/apache/asn1/encoding/EncodingFactoryDefault.java

Modified: directory/asn1/branches/ber-decoder/modules/runtime/src/java/org/apache/asn1/encoding/EncodingFactoryDefault.java
URL: http://svn.apache.org/viewcvs/directory/asn1/branches/ber-decoder/modules/runtime/src/java/org/apache/asn1/encoding/EncodingFactoryDefault.java?rev=232909&r1=232908&r2=232909&view=diff
==============================================================================
--- directory/asn1/branches/ber-decoder/modules/runtime/src/java/org/apache/asn1/encoding/EncodingFactoryDefault.java
(original)
+++ directory/asn1/branches/ber-decoder/modules/runtime/src/java/org/apache/asn1/encoding/EncodingFactoryDefault.java
Mon Aug 15 16:55:24 2005
@@ -22,6 +22,7 @@
  */
 public class EncodingFactoryDefault extends EncodingFactory
 {
+    private final String ASN1_ENCODING_ROOT = "org.apache.asn1.encoding.";
     private final String encoding;
 
     public EncodingFactoryDefault( String encoding )
@@ -48,7 +49,7 @@
     {
         Object encoder = null;
         String name = type.getName();
-        String pkg = type.getPackage().getName() + "." + encoding + "." + name.substring(
name.lastIndexOf( "." ) + 1 ) + encodingType;
+        String pkg = ASN1_ENCODING_ROOT + type.getPackage().getName() + "." + encoding +
"." + name.substring( name.lastIndexOf( "." ) + 1 ) + encodingType;
         try
         {
             Class encoderClass = Thread.currentThread().getContextClassLoader().loadClass(
pkg );



Mime
View raw message