com.metamatrix.platform.config.persistence.api
Class PersistentConnectionFactory

java.lang.Object
  extended by com.metamatrix.platform.config.persistence.api.PersistentConnectionFactory
Direct Known Subclasses:
FilePersistentConnectionFactory, JDBCPersistentConnectionFactory

public abstract class PersistentConnectionFactory
extends java.lang.Object


Field Summary
static java.lang.String FILE_FACTORY_NAME
           
static java.lang.String JDBC_FACTORY_NAME
           
static java.lang.String PERSISTENT_FACTORY_NAME
           
 
Constructor Summary
PersistentConnectionFactory(java.util.Properties factoryProperties)
           
 
Method Summary
abstract  PersistentConnection createPersistentConnection()
          Creates the the of PersistentConnection required to communicate to the configuration repository.
static PersistentConnectionFactory createPersistentConnectionFactory(java.util.Properties props)
          createPersistentConnectionFactory is used for bootstrapping the system.
 java.util.Properties getProperties()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PERSISTENT_FACTORY_NAME

public static final java.lang.String PERSISTENT_FACTORY_NAME
See Also:
Constant Field Values

FILE_FACTORY_NAME

public static final java.lang.String FILE_FACTORY_NAME

JDBC_FACTORY_NAME

public static final java.lang.String JDBC_FACTORY_NAME
Constructor Detail

PersistentConnectionFactory

public PersistentConnectionFactory(java.util.Properties factoryProperties)
Method Detail

getProperties

public java.util.Properties getProperties()

createPersistentConnectionFactory

public static final PersistentConnectionFactory createPersistentConnectionFactory(java.util.Properties props)
                                                                           throws ConfigurationException
createPersistentConnectionFactory is used for bootstrapping the system. The connection is normally only used for starting the system, then then createPersistentConnectionFactory(java.util.Properties) is used.

Parameters:
props -
Returns:
Throws:
ConfigurationException

createPersistentConnection

public abstract PersistentConnection createPersistentConnection()
                                                         throws ConfigurationException
Creates the the of PersistentConnection required to communicate to the configuration repository.

Parameters:
properties - are the settings for persistence storage
Returns:
PersistentSource class for handling configuration storage
Throws:
ConfigurationException


Copyright © 2009. All Rights Reserved.