org.jtool.jxplatform.j2x
Class IdPublisher

java.lang.Object
  extended byorg.jtool.jxplatform.j2x.IdPublisher

public class IdPublisher
extends java.lang.Object

Publishes identifiers based on the names of a class, method, or field.

Author:
Katsuhisa Maruyama

Constructor Summary
IdPublisher()
          Creates a pool of identifier managers.
 
Method Summary
 void close()
          Cleans up the pool.
 java.lang.String getId(java.lang.String name)
          Generates an identifier based on a name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IdPublisher

public IdPublisher()
Creates a pool of identifier managers.

Method Detail

close

public void close()
Cleans up the pool.


getId

public java.lang.String getId(java.lang.String name)
Generates an identifier based on a name.

Parameters:
name - A name.
Returns:
The character string ("j" + numerals) of the generated identifier.