DBAbstract API Documentation

ro.raducora.connection.client
Class AdapterManager

java.lang.Object
  |
  +--ro.raducora.connection.client.AdapterManager

public class AdapterManager
extends java.lang.Object

Author:
Radu Coravu
The Manager which registers,unregisters AdapterBase implementers

Constructor Summary
AdapterManager()
           
 
Method Summary
 boolean deregisterAdapter(AdapterBase adapter)
          De-registers an adapter
 AdapterBase getRightAdapter(ConnectInfo info)
          Gets right Adapter for job.
 boolean registerAdapter(AdapterBase adapter)
          Registers an AdapterBase object
 void reloadProperties()
          Reload properties for all adapters.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AdapterManager

public AdapterManager()
Method Detail

reloadProperties

public void reloadProperties()
Reload properties for all adapters. Useful when config source changes for one or more adapters


registerAdapter

public boolean registerAdapter(AdapterBase adapter)
Registers an AdapterBase object

Parameters:
adapter - the type of adapter to register
Returns:
false if adapter type already registered true otherwise

deregisterAdapter

public boolean deregisterAdapter(AdapterBase adapter)
De-registers an adapter

Parameters:
adapter - the type of adapter to de-register
Returns:
true if adapter is succesfully removed

getRightAdapter

public AdapterBase getRightAdapter(ConnectInfo info)
Gets right Adapter for job. Tries all adapters until one of them does not throw an Exception

Parameters:
info - the Connection information
Returns:
clone of the adapter most suited null if no suitable found

DBAbstract API Documentation

© Copyright Radu Coravu 2002 - 2004.