Example #1
0
 /**
  * Returns the cached instance in the servlet context.
  *
  * @see NutchBeanConstructor
  */
 public static NutchBean get(ServletContext app, Configuration conf) throws IOException {
   final NutchBean bean = (NutchBean) app.getAttribute(KEY);
   return bean;
 }