To improve performance, the values of the properties themselves are cached in memory.
The behaviour of this cache is effected by two Java system properties, adito.jdbcPropertyDatabase.cacheTTL and adito.jdbcPropertyDatabase.cacheMaxObjs
adito.jdbcPropertyDatabase.cacheTTL
adito.jdbcPropertyDatabase.cacheMaxObjs
5556575859606162
* @throws Exception */ @BeforeClass public static void oneTimeSetUp() throws Exception { setUp(""); propertyDatabase = new JDBCPropertyDatabase(); propertyDatabase.open(CoreServlet.getServlet()); }
2223242526272829
public static PropertyDatabase getInstance() { try { return instance == null ? instance = (PropertyDatabase) propertyDatabaseImpl.newInstance() : instance; } catch (Exception e) { log.error("Could not create instance of class " + propertyDatabaseImpl.getCanonicalName(), e); return instance == null ? instance = new JDBCPropertyDatabase() : instance; } }