List of usage examples for org.springframework.jdbc.datasource.embedded DerbyEmbeddedDatabaseConfigurer DerbyEmbeddedDatabaseConfigurer
private DerbyEmbeddedDatabaseConfigurer()
From source file:org.springframework.jdbc.datasource.embedded.DerbyEmbeddedDatabaseConfigurer.java
/** * Get the singleton {@link DerbyEmbeddedDatabaseConfigurer} instance. * @return the configurer/*from w w w . j a v a 2s. com*/ * @throws ClassNotFoundException if Derby is not on the classpath */ public static synchronized DerbyEmbeddedDatabaseConfigurer getInstance() throws ClassNotFoundException { if (instance == null) { // disable log file System.setProperty("derby.stream.error.method", OutputStreamFactory.class.getName() + ".getNoopOutputStream"); instance = new DerbyEmbeddedDatabaseConfigurer(); } return instance; }