public class XMLDatabaseClusterConfigurationFactory<Z,D extends Database<Z>> extends Object implements DatabaseClusterConfigurationFactory<Z,D>
DatabaseClusterConfigurationFactory
that parses an xml configuration file.Constructor and Description |
---|
XMLDatabaseClusterConfigurationFactory(Class<? extends DatabaseClusterConfiguration<Z,D>> targetClass,
String id,
String resource) |
XMLDatabaseClusterConfigurationFactory(Class<? extends DatabaseClusterConfiguration<Z,D>> targetClass,
String id,
String resource,
ClassLoader loader) |
XMLDatabaseClusterConfigurationFactory(Class<? extends DatabaseClusterConfiguration<Z,D>> targetClass,
URL url) |
XMLDatabaseClusterConfigurationFactory(Class<? extends DatabaseClusterConfiguration<Z,D>> targetClass,
XMLStreamFactory streamFactory) |
Modifier and Type | Method and Description |
---|---|
void |
added(D database,
DatabaseClusterConfiguration<Z,D> configuration) |
DatabaseClusterConfiguration<Z,D> |
createConfiguration() |
void |
export(DatabaseClusterConfiguration<Z,D> configuration) |
void |
removed(D database,
DatabaseClusterConfiguration<Z,D> configuration) |
public XMLDatabaseClusterConfigurationFactory(Class<? extends DatabaseClusterConfiguration<Z,D>> targetClass, String id, String resource)
public XMLDatabaseClusterConfigurationFactory(Class<? extends DatabaseClusterConfiguration<Z,D>> targetClass, String id, String resource, ClassLoader loader)
public XMLDatabaseClusterConfigurationFactory(Class<? extends DatabaseClusterConfiguration<Z,D>> targetClass, URL url)
public XMLDatabaseClusterConfigurationFactory(Class<? extends DatabaseClusterConfiguration<Z,D>> targetClass, XMLStreamFactory streamFactory)
public DatabaseClusterConfiguration<Z,D> createConfiguration() throws SQLException
createConfiguration
in interface DatabaseClusterConfigurationFactory<Z,D extends Database<Z>>
SQLException
DatabaseClusterConfigurationFactory.createConfiguration()
public void added(D database, DatabaseClusterConfiguration<Z,D> configuration)
added
in interface DatabaseClusterConfigurationListener<Z,D extends Database<Z>>
DatabaseClusterConfigurationListener.added(net.sf.hajdbc.Database, net.sf.hajdbc.DatabaseClusterConfiguration)
public void removed(D database, DatabaseClusterConfiguration<Z,D> configuration)
removed
in interface DatabaseClusterConfigurationListener<Z,D extends Database<Z>>
DatabaseClusterConfigurationListener.removed(net.sf.hajdbc.Database, net.sf.hajdbc.DatabaseClusterConfiguration)
public void export(DatabaseClusterConfiguration<Z,D> configuration)
Copyright © 2004–2014 Paul Ferraro. All rights reserved.