| java.lang.Object javax.naming.CompositeName org.apache.naming.core.ServerName
ServerName | public class ServerName extends CompositeName (Code) | | Implementation of Name with support for extra information.
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.
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 |
Method Summary | |
final public int | getId() ID is a small int, equivalent with a note. | public static Name | getName(String s) Factory method to create server names. | final public void | setId(int id) |
getId | final public int getId()(Code) | | ID is a small int, equivalent with a note.
The name is reused in the server environment, and various
components can use the id for fast access.
The id is local for a particular context.
/Servlet/ClassName -> ClassName will have an ID ( note id ) unique
for the Servlet
|
setId | final public void setId(int id)(Code) | | |
|
|