blackboard.admin.persist.datasource
Class DataSourceLoader.Default

java.lang.Object
  extended by blackboard.admin.persist.datasource.DataSourceLoader.Default
Enclosing interface:
DataSourceLoader

public static final class DataSourceLoader.Default
extends java.lang.Object

A utility class that provides quick access to the Loader instance associated with the default instance of the database BbPersistenceManager.

This class and its method(s) are conveniences and should be used wisely. If one is retrieving many Loader and/or Persister instances within some scope, it will likely be more efficient to retrieve the default database persistence manager directly, and then retrieve loader/persister instances from it instead of making several calls to this and/or other loader/persister utility classes.


Constructor Summary
DataSourceLoader.Default()
           
 
Method Summary
static DataSourceLoader getInstance()
          Returns the Loader instance associated with the default instance of the database BbPersistenceManager.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataSourceLoader.Default

public DataSourceLoader.Default()
Method Detail

getInstance

public static DataSourceLoader getInstance()
                                    throws PersistenceException
Returns the Loader instance associated with the default instance of the database BbPersistenceManager.

Calling this method is equivalent to executing the following code:
 BbPersistenceManager pm = PersistenceServiceFactory.getInstance().getDbPersistenceManager();
 (Loader implementation) loader = (Loader implementation) pm.getLoader( Loader implementation.TYPE ) );
 

Returns:
the Loader instance associated with the default database persistence manager
Throws:
PersistenceException - if an error occurs when trying to retrieve the Loader instance


Copyright 2011 Blackboard, Inc. All Rights Reserved.