Examples of create()


Examples of org.sonatype.nexus.templates.repository.maven.Maven1GroupRepositoryTemplate.create()

    for (String member : members) {
      template.getExternalConfiguration(true).addMemberRepositoryId(member);
    }

    return (MavenGroupRepository) template.create();
  }
}

Examples of org.sonatype.nexus.templates.repository.maven.Maven1HostedRepositoryTemplate.create()

    template.getConfigurableRepository().setIndexable(false);
    template.getConfigurableRepository().setId(id);
    template.getConfigurableRepository().setName(id);

    return template.create();
  }

  private MavenRepository createM1ProxyRepo(String id)
      throws Exception
  {

Examples of org.sonatype.nexus.templates.repository.maven.Maven1ProxyRepositoryTemplate.create()

    template.getConfigurableRepository().setIndexable(false);
    template.getConfigurableRepository().setId(id);
    template.getConfigurableRepository().setName(id);

    return template.create();
  }

  private MavenGroupRepository createM1Group(String id, List<String> members)
      throws Exception
  {

Examples of org.sonatype.nexus.templates.repository.maven.Maven2GroupRepositoryTemplate.create()

            Maven2GroupRepositoryTemplate.class).pick();

    template.getConfigurableRepository().setIndexable(false);
    template.getConfigurableRepository().setId(repoId);

    return template.create();
  }

  private Repository buildShadowRepository(String repoId)
      throws Exception
  {

Examples of org.sonatype.nexus.templates.repository.maven.Maven2HostedRepositoryTemplate.create()

            Maven2HostedRepositoryTemplate.class, RepositoryPolicy.RELEASE).pick();

    template.getConfigurableRepository().setIndexable(false);
    template.getConfigurableRepository().setId(repoId);

    return template.create();
  }

  private Repository buildGroupRepository(String repoId)
      throws Exception
  {

Examples of org.sonatype.nexus.templates.repository.maven.Maven2Maven1ShadowRepositoryTemplate.create()

    shadowTemplate.getConfigurableRepository().setIndexable(false);
    shadowTemplate.getConfigurableRepository().setId(repoId + "-shadow");

    shadowTemplate.getExternalConfiguration(true).setMasterRepositoryId(repoId);

    return shadowTemplate.create();
  }

  private Subject loginUser(String username)
      throws AuthenticationException
  {

Examples of org.sonatype.nexus.templates.repository.maven.Maven2ProxyRepositoryTemplate.create()

      throws Exception
  {
    Maven2ProxyRepositoryTemplate t =
        (Maven2ProxyRepositoryTemplate) lookup(TemplateManager.class).getTemplate(RepositoryTemplate.class, "default_proxy_snapshot");
    t.getConfigurableRepository().setId("invalidUrlRepo");
    ProxyRepository r = t.create().adaptToFacet(ProxyRepository.class);
    r.setRemoteUrl("http://repository.sonatyp.org/content/repositories/snapshots");

    nexusConfiguration().saveConfiguration();

    indexerManager.reindexRepository("/", r.getId(), true);

Examples of org.springframework.boot.config.processor.model.EntityModelFactory.create()

  private Collection<EntityModel> parseEntityModel() {
    EntityModelFactory factory = new EntityModelFactory(env);
    Collection<EntityModel> result = new ArrayList<EntityModel>();
    for (TypeElement element : getTypeElementCandidates()) {
      EntityModel entityModel = factory.create(element);
      result.add(entityModel);
    }
    for (ExecutableElement method : getExecutableElementCandidates()) {
      if (isMethodCandidate(method)) {
        TypeElement element = modelHelper.safeToTypeElement(method.getReturnType());

Examples of org.springframework.cglib.proxy.Enhancer.create()

          new LookupOverrideMethodInterceptor(),
          new ReplaceOverrideMethodInterceptor()
      });

      return (ctor == null) ?
          enhancer.create() :
          enhancer.create(ctor.getParameterTypes(), args);
    }


    /**
 

Examples of org.springframework.cglib.proxy.InterfaceMaker.create()

      if (abd.getDestroyMethodName() != null) {
        Signature signature = new Signature(abd.getDestroyMethodName(), Type.VOID_TYPE, new Type[0]);
        maker.add(signature, new Type[0]);
      }
    }
    return maker.create();
  }

  /**
   * Create a composite interface Class for the given interfaces,
   * implementing the given interfaces in one single Class.
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.