You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by co...@apache.org on 2002/10/17 18:48:28 UTC
cvs commit: jakarta-tomcat-connectors/naming/src/org/apache/naming/core ServerName.java
costin 2002/10/17 09:48:28
Modified: naming/src/org/apache/naming/core ServerName.java
Log:
Fix the comments. Still no implementation ( it's not very important
for now, using normal contexts / names and getting the functionality
is more important )
Revision Changes Path
1.2 +9 -6 jakarta-tomcat-connectors/naming/src/org/apache/naming/core/ServerName.java
Index: ServerName.java
===================================================================
RCS file: /home/cvs/jakarta-tomcat-connectors/naming/src/org/apache/naming/core/ServerName.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- ServerName.java 1 Oct 2002 18:42:16 -0000 1.1
+++ ServerName.java 17 Oct 2002 16:48:28 -0000 1.2
@@ -63,14 +63,16 @@
import javax.naming.*;
/**
- * Extended version for Attribute. All our dirContexts should return objects
- * of this type. Methods that take attribute param should use this type
- * of objects for performance.
+ * Implementation of Name with support for extra information.
*
- * This is an extension of the 'note' in tomcat 3.3. Each attribute will have an
- * 'ID' ( small int ) and an associated namespace. The attributes are recyclable.
+ * An extra feature ( not yet implemneted ) is the support for
+ * MessageBytes. This allows tomcat to operate lookup operations
+ * on the original message, without creating Strings.
*
- * The attribute is designed for use in server env, where performance is important.
+ * Another feature is support for extra information that can be cached.
+ * This brakes a bit the JNDI requirements, as Contexts can modify the
+ * Name and add anotations. The main benefit is that after the first
+ * lookup it'll be possible to avoid some expensive operations.
*
* @author Costin Manolache
*/
@@ -101,6 +103,7 @@
}
/**
+ * Factory method to create server names.
*/
public static Name getName( String s ) throws InvalidNameException {
return new ServerName( s );
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>