org.datanucleus.api
Class ApiAdapterFactory

java.lang.Object
  extended by org.datanucleus.api.ApiAdapterFactory

public class ApiAdapterFactory
extends java.lang.Object

Factory of API adapters.


Constructor Summary
protected ApiAdapterFactory()
          Protected constructor to prevent outside instantiation
 
Method Summary
 ApiAdapter getApiAdapter(java.lang.String name, PluginManager pluginMgr)
          Accessor for an adapter, given the api name.
static ApiAdapterFactory getInstance()
          Accessor for the ApiAdapterFactory (singleton).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ApiAdapterFactory

protected ApiAdapterFactory()
Protected constructor to prevent outside instantiation

Method Detail

getInstance

public static ApiAdapterFactory getInstance()
Accessor for the ApiAdapterFactory (singleton).

Returns:
The manager of type information

getApiAdapter

public ApiAdapter getApiAdapter(java.lang.String name,
                                PluginManager pluginMgr)
Accessor for an adapter, given the api name. If the API adapter doesn't yet exist will try to initialise it from the plugin information defined under extension-point "org.datanucleus.api_adapter".

Parameters:
name - the adapter name
Returns:
The ApiAdapter TODO Throw exception when failure to find API


Copyright © 2010. All Rights Reserved.