org.apache.jdo.impl.fostore
Class FOStoreTranscriberFactory

java.lang.Object
  extended byorg.apache.jdo.impl.fostore.FOStoreTranscriberFactory
All Implemented Interfaces:
TranscriberFactory

class FOStoreTranscriberFactory
extends java.lang.Object
implements TranscriberFactory

Provides Transcriber instances for FOStore. Note that only one instance of any kind of transcriber is ever created.

Author:
Dave Bristor

Field Summary
private static FOStoreTranscriberFactory instance
           
private static java.util.HashMap transcribers
           
 
Constructor Summary
private FOStoreTranscriberFactory()
           
 
Method Summary
(package private) static FOStoreTranscriberFactory getInstance()
           
 Transcriber[] getTranscriber(java.lang.Class cls)
          Provides a Transcriber for the given class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

instance

private static FOStoreTranscriberFactory instance

transcribers

private static java.util.HashMap transcribers
Constructor Detail

FOStoreTranscriberFactory

private FOStoreTranscriberFactory()
Method Detail

getInstance

static FOStoreTranscriberFactory getInstance()

getTranscriber

public Transcriber[] getTranscriber(java.lang.Class cls)
Provides a Transcriber for the given class. The result is an array, as defined by the interface, but the return here always contains only one Transcriber.

Specified by:
getTranscriber in interface TranscriberFactory
Parameters:
cls - Class for which a Transcriber is needed.
Returns:
An array of transcribers; array will contain only one Transcriber.