private void loadState () { final java.io.File f = new java.io.File(this.cacheFileName); if ( ! f.exists()) { log.debug ("loadState() nothing to load, no file at "+this.cacheFileName); this.masters = new java.util.HashMap(); this.slaves = new java.util.HashMap(); return; } try { final java.util.Map state = (java.util.Map)XmlBeanCoder.load(this.cacheFileName); this.masters = (java.util.Map)state.get("masters"); this.slaves = (java.util.Map)state.get("slaves"); log.debug("loadState() done."); } catch (final Exception e) { log.warn("loadState() failure with file "+this.cacheFileName, e); } }
(ParticipantExpression)XmlBeanCoder.load(fileName);
protected FlowExpression loadExpression (final String fileName) throws Exception { //final long start = System.currentTimeMillis(); final FlowExpression result = (FlowExpression)XmlBeanCoder .load(FileUtils.getCanonicalPath (getContext().getApplicationDirectory(), fileName)); result.setApplicationContext(getContext()); //log.debug // ("loadExpression() took "+(System.currentTimeMillis() - start)); return result; }