public Application get(final URI uri) throws InvalidApplicationException, RedirectException { Application app = getCached(uri); if (LOG.isDebugEnabled()) { LOG.debug( toString() + " found app=" + app + " for url=" + uri + ",_cache.size=" + _cache.size()); } if (app == null) { app = findApplication(uri); putCached(uri, app); if (LOG.isDebugEnabled()) { LOG.debug( toString() + " cached app=" + app + " for url=" + uri + ",_cache.size=" + _cache.size()); } } else { Utils.setLogContext(app, null); LOG.info(app + " has been found."); } return app; }
public Application get(final String token, final Properties params) throws InvalidApplicationException, RedirectException { Application app = getCached(token); if (LOG.isDebugEnabled()) { LOG.debug("Mgr Found app=" + app + " for token=" + token + ",_cache.size=" + _cache.size()); } if (app == null) { app = findApplication(token, params); if (LOG.isDebugEnabled()) { LOG.debug( "Mgr Cached app=" + app + " for token=" + token + ",_cache.size=" + _cache.size()); } } else { Utils.setLogContext(app, null); LOG.info(app + " has been found."); } return app; }