com.ibm.datapower.wamt.dataAPI
Class RepositoryFactory

java.lang.Object
  extended by com.ibm.datapower.wamt.AbstractFactory
      extended by com.ibm.datapower.wamt.dataAPI.RepositoryFactory

public class RepositoryFactory
extends AbstractFactory

Factory for creating/manufacturing the Repository object.


Field Summary
static java.lang.String COPYRIGHT_2009_2013
           
 
Fields inherited from class com.ibm.datapower.wamt.AbstractFactory
NON_SINGLETON, SINGLETON
 
Method Summary
static Repository getRepository(java.lang.String implementationClassName, Credential credential)
          Returns an instance of the repository.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COPYRIGHT_2009_2013

public static final java.lang.String COPYRIGHT_2009_2013
See Also:
Constant Field Values
Method Detail

getRepository

public static Repository getRepository(java.lang.String implementationClassName,
                                       Credential credential)
                                throws DatastoreException
Returns an instance of the repository. A Repository is a singleton, so this will return a reference to the instance. The caller must have valid credentials to access the repository.

Parameters:
implementationClassName - name of the class that implements the Repository interface.
credential - credential which indicate that the caller is authorized to access the repository
Returns:
a reference to the repository


© Copyright IBM Corp. 2006, 2010 All Rights Reserved.