Tabnine Logo
ChainedComponentModel
Code IndexAdd Tabnine to your IDE (free)

How to use
ChainedComponentModel
in
com.yahoo.component.chain.model

Best Java code snippets using com.yahoo.component.chain.model.ChainedComponentModel (Showing top 11 results out of 315)

origin: com.yahoo.vespa/config-model

public ChainedComponentModel build() {
  return new ChainedComponentModel(bundleInstantiationSpec, dependencies);
}
origin: com.yahoo.vespa/container-search

private static boolean allAdded(Collection<ChainedComponentModel> searcherModels, Set<ComponentId> componentIds) {
  for (ChainedComponentModel model : searcherModels) {
    if (!componentIds.add(model.getComponentId()))
      return false;
  }
  return true;
}
origin: com.yahoo.vespa/config-model

@Override
public void getConfig(HttpFilterConfig.Builder builder) {
  builder.filterName(filterModel.getComponentId().stringValue())
      .filterClass(filterModel.getClassId().stringValue());
  for (Map.Entry<String, String> param : configMap.entrySet()) {
    builder.param(
        new Param.Builder()
            .name(param.getKey())
            .value(param.getValue()));
  }
}
origin: com.yahoo.vespa/config-model

@Override
public ComponentId getGlobalComponentId() {
  return model.getComponentId().nestInNamespace(namespace());
}
origin: com.yahoo.vespa/container-search

  @SafeVarargs
  private static final Collection<ChainedComponentModel> toSearcherModels(Class<? extends Searcher>... searchers) {
    List<ChainedComponentModel> searcherModels = new ArrayList<>();

    for (Class<? extends Searcher> c : searchers) {
      searcherModels.add(
          new ChainedComponentModel(
              BundleInstantiationSpecification.getInternalSearcherSpecificationFromStrings(
                  c.getName(),
                  null),
              Dependencies.emptyDependencies()));
    }

    return ImmutableList.copyOf(searcherModels);
  }
}
origin: com.yahoo.vespa/chain

private static <COMPONENT extends ChainedComponent> void initDependencies(
    ChainsModel model,
    ComponentRegistry<COMPONENT> allComponents) {
  for (ChainedComponentModel componentModel : model.allComponents()) {
    COMPONENT component = getComponentOrThrow(allComponents, componentModel.getComponentId().toSpecification());
    component.initDependencies(componentModel.dependencies);
  }
}
origin: com.yahoo.vespa/container-search

  private static Collection<ChainedComponentModel> toSearcherModels(Class<? extends Searcher>... searchers) {
    List<ChainedComponentModel> searcherModels = new ArrayList<>();
    for (Class c : searchers) {
      searcherModels.add(
          new ChainedComponentModel(
              BundleInstantiationSpecification.getInternalSearcherSpecificationFromStrings(c.getName(), null),
              Dependencies.emptyDependencies()));
    }
    return searcherModels;
  }
}
origin: com.yahoo.vespa/chain

public static ChainsModel buildFromConfig(ChainsConfig chainsConfig) {
  ChainsModel model = createChainsModel(chainsConfig);
   for (ChainsConfig.Components component : chainsConfig.components()) {
     ChainedComponentModel componentModel = createChainedComponentModel(component);
     model.register(componentModel.getComponentId(), componentModel);
   }
   return model;
}
origin: com.yahoo.vespa/chain

private static ChainedComponentModel createChainedComponentModel(ChainsConfig.Components component) {
  return new ChainedComponentModel(
      new BundleInstantiationSpecification(new ComponentSpecification(component.id()), null, null),
      createDependencies(
          component.dependencies().provides(),
          component.dependencies().before(),
          component.dependencies().after()),
      null);
}
origin: com.yahoo.vespa/config-model

public FilterConfigProvider(ChainedComponentModel filterModel) {
  super(new ComponentModel(
      new BundleInstantiationSpecification(
          configProviderId(filterModel.getComponentId()),
          filterConfigProviderClass,
          null)));
  this.filterModel = filterModel;
}
origin: com.yahoo.vespa/chain

public void register(ComponentId globalComponentId, ChainedComponentModel componentModel) {
  assert (componentModel.getComponentId().withoutNamespace().equals(
      globalComponentId.withoutNamespace()));
  componentModels.register(globalComponentId, ComponentAdaptor.create(globalComponentId, componentModel));
}
com.yahoo.component.chain.modelChainedComponentModel

Javadoc

Describes how a chained component should be created.

Most used methods

  • <init>
  • getComponentId
  • getClassId

Popular in Java

  • Parsing JSON documents to java classes using gson
  • getApplicationContext (Context)
  • getSystemService (Context)
  • runOnUiThread (Activity)
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • JFrame (javax.swing)
  • Top 15 Vim Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now