Examples of ViewConfig


Examples of org.sonatype.nexus.componentviews.config.ViewConfig

  private static final String PROXY_INTERNAL_ID = "bar_34wfe32434";

  @Override
  public void contributeTo(final ViewConfigStore viewConfigStore) throws IOException {

    final ViewConfig hostedViewConfig = new ViewConfig(new ViewId(VIEW_NAME, INTERNAL_ID),
        RawBinaryViewFactory.FACTORY_NAME,
        Collections.<String, Object>emptyMap());

    addIfAbsent(hostedViewConfig, viewConfigStore);

    final ViewConfig proxyViewConfig = new ViewConfig(new ViewId(PROXY_VIEW_NAME, PROXY_INTERNAL_ID),
        RawBinaryProxyViewFactory.FACTORY_NAME,
        ImmutableMap.of("sourceName", (Object) RawSourceConfigContribution.SOURCE_NAME));

    addIfAbsent(proxyViewConfig, viewConfigStore);
  }
View Full Code Here

Examples of org.sonatype.nexus.componentviews.config.ViewConfig

    addIfAbsent(proxyViewConfig, viewConfigStore);
  }

  private void addIfAbsent(final ViewConfig config, final ViewConfigStore viewConfigStore) throws IOException {
    final ViewConfig viewConfig = viewConfigStore.get(config.getViewName());
    if (viewConfig == null) {

      log.info("Force-adding config for /views/{}.", config.getViewName());

      viewConfigStore.add(config);
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.