Package org.sonatype.nexus.component.source

Examples of org.sonatype.nexus.component.source.ComponentSourceId


    entityType = null;
  }

  @Override
  public ComponentSourceId createId(final String name) {
    return new ComponentSourceId(name, UUID.randomUUID().toString());
  }
View Full Code Here


  @Test(expected = RuntimeException.class)
  public void idNotFoundCausesException() {
    final InMemorySourceRegistry registry = new InMemorySourceRegistry();

    registry.getSource(new ComponentSourceId("not found", "uuid"));
  }
View Full Code Here

    final String name = document.field(P_SOURCEID_NAME, OType.STRING);
    final String internalId = document.field(P_SOURCEID_ID, OType.STRING);

    final String factoryName = document.field(P_FACTORYNAME, OType.STRING);
    final Map<String, Object> config = document.field(P_CONFIGURATION, OType.EMBEDDEDMAP);
    ComponentSourceConfig entity = new ComponentSourceConfig(new ComponentSourceId(name, internalId), factoryName,
        config);

    return entity;
  }
View Full Code Here

              .withUserAgentCustomisation("NX3")
          )
      ));

      store.add(new ComponentSourceConfig(
          new ComponentSourceId(SOURCE_NAME, INTERNAL_ID),
          RawComponentSourceFactory.NAME,
          config
      ));
    }
  }
View Full Code Here

TOP

Related Classes of org.sonatype.nexus.component.source.ComponentSourceId

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.