Examples of inform()


Examples of org.apache.cocoon.portal.event.Subscriber.inform()

            if (subscriber.getEventType().isAssignableFrom(event.getClass())
            && (subscriber.getFilter() == null || subscriber.getFilter().filter(event))) {
                if ( getLogger().isDebugEnabled() ) {
                    getLogger().info("Informing subscriber "+subscriber+" of event "+event.getClass());
                }
                subscriber.inform(event);
            }
        }
    }
   
    public void subscribe( final Subscriber subscriber )
View Full Code Here

Examples of org.apache.lucene.analysis.synonym.SynonymFilterFactory.inform()

    SynonymFilterFactory factory = new SynonymFilterFactory();
    Map<String,String> args = new HashMap<String,String>();
    args.put("synonyms", "synonyms.txt");
    factory.setLuceneMatchVersion(TEST_VERSION_CURRENT);
    factory.init(args);
    factory.inform(new StringMockResourceLoader("a b c,d"));
    TokenStream ts = factory.create(new MockTokenizer(new StringReader("a e"), MockTokenizer.WHITESPACE, false));
    // This fails because ["e","e"] is the value of the token stream
    assertTokenStreamContents(ts, new String[] { "a", "e" });
  }
}
View Full Code Here

Examples of org.apache.lucene.analysis.util.ResourceLoaderAware.inform()

    try {
      factory.setLuceneMatchVersion(TEST_VERSION_CURRENT);
      factory.init(Collections.<String,String>emptyMap());
      if (factory instanceof ResourceLoaderAware) {
        ResourceLoaderAware resourceLoaderAware = (ResourceLoaderAware) factory;
          resourceLoaderAware.inform(new ClasspathResourceLoader(factory.getClass()));
      }
      success = true;
    } catch (IllegalArgumentException ignored) {
      // its ok if we dont provide the right parameters to throw this
    }
View Full Code Here

Examples of org.apache.sling.launchpad.api.StartupListener.inform()

                    }

                    public Object addingService(final ServiceReference reference) {
                        final StartupListener listener = (StartupListener) context.getService(reference);
                        if ( listener != null ) {
                            listener.inform(startupMode, finished.get());
                        }
                        return listener;
                    }
                });
        this.listenerTracker.open();
View Full Code Here

Examples of org.apache.solr.analysis.StopFilterFactory.inform()

        Map<String, String> arguments = new HashMap<>();
        arguments.put("words", stopWordsFile);
        arguments.put("luceneMatchVersion", String.valueOf(Version.LUCENE_31));
        arguments.put("ignoreCase", String.valueOf(ignoreCase));
        filterFactory.init(arguments);
        filterFactory.inform(new HibernateSearchResourceLoader());
       
        Set<String> stopWords = (Set<String>)filterFactory.getStopWords();
        List<String> searchTerms = splitSearchText(searchText);
        searchTerms.removeAll(stopWords);
        return joinSearchTerms(searchTerms);
View Full Code Here

Examples of org.apache.solr.analysis.WordDelimiterFilterFactory.inform()

    args.put("catenateAll", "0");
    args.put("splitOnCaseChange", "1");
   
    /* default behavior */
    factoryDefault.init(args);
    factoryDefault.inform(loader);
   
    TokenStream ts = factoryDefault.create(
        new WhitespaceTokenizer(BaseTokenTestCase.DEFAULT_VERSION, new StringReader(testText)));
    BaseTokenTestCase.assertTokenStreamContents(ts,
        new String[] { "I", "borrowed", "5", "400", "00", "540000", "at", "25", "interest", "rate", "interestrate" });
View Full Code Here

Examples of org.apache.solr.analysis.WordDelimiterFilterFactory.inform()

    /* custom behavior */
    WordDelimiterFilterFactory factoryCustom = new WordDelimiterFilterFactory();
    // use a custom type mapping
    args.put("types", "wdftypes.txt");
    factoryCustom.init(args);
    factoryCustom.inform(loader);
   
    ts = factoryCustom.create(
        new WhitespaceTokenizer(BaseTokenTestCase.DEFAULT_VERSION, new StringReader(testText)));
    BaseTokenTestCase.assertTokenStreamContents(ts,
        new String[] { "I", "borrowed", "$5,400.00", "at", "25%", "interest", "rate", "interestrate" });
View Full Code Here

Examples of org.apache.solr.core.SolrResourceLoader.inform()

        lis.close();
      }
      catch(IOException xio) {} // ignore
    }
   
    loader.inform( loader );
  }

  public SolrConfig getSolrConfig() {
    return solrConfig;
  }
View Full Code Here

Examples of org.olat.core.extensions.ExtManager.inform()

            for (int i = 0; i < cnt; i++) {
              Extension anExt = extm.getExtension(i);
              HibernateConfigurator hibconfigure = (HibernateConfigurator) anExt.getExtensionFor(extensionPoint.getName());
              if (hibconfigure != null) {
                hibconfigure.extend(cfg);
                extm.inform(extensionPoint, anExt, "added hibernate configuration");
              }
            }

            // set audit interceptor that traces lastChanged
            cfg.setInterceptor(new AuditInterceptor());
View Full Code Here

Examples of org.olat.core.extensions.ExtManager.inform()

        gtn.setAltText(ae.getDescription(getLocale()));
        root.addChild(gtn);
        // inform only once
        if (!extensionLogged) {
          extensionLogged = true;
          extm.inform(extensionPointMenu, anExt, "added menu entry (for locale " + getLocale().toString() + " '" + menuText + "'");
        }
      }
    }

    return gtm;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.