Package org.elasticsearch.common.inject

Examples of org.elasticsearch.common.inject.Module


    /**
     * Returns a new module that installs all of {@code modules}.
     */
    public static Module combine(Iterable<? extends Module> modules) {
        final Set<Module> modulesSet = ImmutableSet.copyOf(modules);
        return new Module() {
            public void configure(Binder binder) {
                binder = binder.skipSources(getClass());
                for (Module module : modulesSet) {
                    binder.install(module);
                }
View Full Code Here


  }

   @Override
   public Collection<Module> shardModules(Settings settings) {
      List<Module> ret = new ArrayList<Module>();
      ret.add(new Module() {
         @Override
         public void configure(Binder binder) {
            binder.bind(HashedStringFieldSettings.class).asEagerSingleton();
         }
      });
View Full Code Here

TOP

Related Classes of org.elasticsearch.common.inject.Module

Copyright © 2018 www.massapicom. 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.