org.apache.wsrp4j.util
Class HandleGeneratorImpl

java.lang.Object
  extended byorg.apache.wsrp4j.util.HandleGeneratorImpl
All Implemented Interfaces:
HandleGenerator

public class HandleGeneratorImpl
extends java.lang.Object
implements HandleGenerator

This class implements the HandleGenerator interface.

Version:
$Id: HandleGeneratorImpl.java,v 1.5 2005/08/12 12:56:53 cziegeler Exp $
Author:
Stephan Laertz
See Also:
HandleGenerator

Field Summary
private static int counter
           
 
Constructor Summary
private HandleGeneratorImpl()
          Private constructor of HandleGeneratorImpl.
 
Method Summary
static HandleGeneratorImpl create()
          Returns an instance of HandleGeneratorImpl.
 java.lang.String generateHandle()
          Generates a new handle and returns it as a String.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

counter

private static int counter
Constructor Detail

HandleGeneratorImpl

private HandleGeneratorImpl()
Private constructor of HandleGeneratorImpl.

Method Detail

create

public static HandleGeneratorImpl create()
Returns an instance of HandleGeneratorImpl.

Returns:
String representing the new handle.

generateHandle

public java.lang.String generateHandle()
Generates a new handle and returns it as a String.

Specified by:
generateHandle in interface HandleGenerator
Returns:
String representing the new handle.


--