oracle.cle.persistence
Class HandlerFactory

java.lang.Object
  |
  +--oracle.cle.util.ObjectFactory
        |
        +--oracle.cle.persistence.HandlerFactory

public abstract class HandlerFactory
extends ObjectFactory

This factory returns the appropriate Handler implementation for the specified Resource Class or Resource Class String. Classic use requires: a properly setup Connection Management system with appropriate persistencebase specified in the specific persistence properties file. Since extending ObjectFactory, Handlers can now, also be obtained via the native ObjectFactory methods.

For example: persistencebase=oracle.demo.persistence.bc4j might be the appropriate persistencebase specification for a BC4J implementation/deployment for a resource.

See Also:
ObjectFactory, ConnectionManager, DeploymentManager, Handler

Constructor Summary
HandlerFactory()
           
 
Method Summary
static Handler getHandler(java.lang.Class aClass)
          Returns the appropriate Handler implementation for the specified Resource Class.
static Handler getHandler(java.lang.String aClassString)
          Returns the appropriate Handler implementation for the specified Resource Class String.
 
Methods inherited from class oracle.cle.util.ObjectFactory
getObject, getObject, main
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HandlerFactory

public HandlerFactory()
Method Detail

getHandler

public static Handler getHandler(java.lang.String aClassString)
                          throws HandlerNotFoundException
Returns the appropriate Handler implementation for the specified Resource Class String. NOTE: The class represented by the string must be a Resource with a correctly named persistence implementation specific HandlerImpl.

NOTE: If the Handler is not found by using the traditional method (persistencebase + .handler. + classString + HandlerImpl) then the ObjectFactory is called and an attempt is made to instatiate the value in the deployment properties file.


getHandler

public static Handler getHandler(java.lang.Class aClass)
                          throws HandlerNotFoundException
Returns the appropriate Handler implementation for the specified Resource Class. NOTE: The specified class must be a Resource with a correctly named persistence implementation specific HandlerImpl.


Copyright © 2003 ORACLE Corp. All Rights Reserved.