• 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏吧

Java AddonDependencyEntry类的典型用法和代码示例

java 1次浏览

本文整理汇总了Java中org.jboss.forge.furnace.repositories.AddonDependencyEntry的典型用法代码示例。如果您正苦于以下问题:Java AddonDependencyEntry类的具体用法?Java AddonDependencyEntry怎么用?Java AddonDependencyEntry使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。

AddonDependencyEntry类属于org.jboss.forge.furnace.repositories包,在下文中一共展示了AddonDependencyEntry类的38个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: getDeployment

点赞 3

import org.jboss.forge.furnace.repositories.AddonDependencyEntry; //导入依赖的package包/类
@Deployment
@AddonDependencies({
        @AddonDependency(name = "org.jboss.forge.addon:maven"),
        @AddonDependency(name = "org.jboss.forge.addon:projects"),
        @AddonDependency(name = "org.jboss.forge.addon:ui"),
        @AddonDependency(name = "org.jboss.forge.addon:ui-test-harness"),
        @AddonDependency(name = "org.jboss.forge.addon:shell-test-harness"),
        @AddonDependency(name = "io.fabric8.forge:camel")
})
public static AddonArchive getDeployment() {
    AddonArchive archive = ShrinkWrap
            .create(AddonArchive.class)
            .addBeansXML()
            .addAsAddonDependencies(
                    AddonDependencyEntry.create("org.jboss.forge.furnace.container:cdi"),
                    AddonDependencyEntry.create("org.jboss.forge.addon:ui"),
                    AddonDependencyEntry.create("org.jboss.forge.addon:ui-test-harness"),
                    AddonDependencyEntry.create("org.jboss.forge.addon:shell-test-harness"),
                    AddonDependencyEntry.create("org.jboss.forge.addon:projects"),
                    AddonDependencyEntry.create("org.jboss.forge.addon:maven"),
                    AddonDependencyEntry.create("io.fabric8.forge:camel")
            );
    return archive;
}
 

开发者ID:fabric8io,
项目名称:fabric8-forge,
代码行数:25,
代码来源:NewComponentInstanceTest.java

示例2: getDeployment

点赞 3

import org.jboss.forge.furnace.repositories.AddonDependencyEntry; //导入依赖的package包/类
@Deployment
@Dependencies({
		@AddonDependency(name = "org.jboss.forge.furnace.container:cdi"),
		@AddonDependency(name = "org.jboss.forge.addon:ui"),
		@AddonDependency(name = "org.jboss.forge.addon:ui-test-harness"),
		@AddonDependency(name = "org.jboss.forge.addon:maven"),
		@AddonDependency(name = "org.jboss.forge.addon:projects"),
		@AddonDependency(name = "org.jboss.forge.addon.javaee7.batch:javaee7-batch"),
		@AddonDependency(name = "org.jboss.forge.addon:parser-java")})
public static ForgeArchive getDeployment() {
	ForgeArchive archive = ShrinkWrap
			.create(ForgeArchive.class)
			.addBeansXML()
			.addAsAddonDependencies(
					AddonDependencyEntry
							.create("org.jboss.forge.furnace.container:cdi"),
					AddonDependencyEntry.create("org.jboss.forge.addon:ui"),
					AddonDependencyEntry.create("org.jboss.forge.addon:ui-test-harness"),
					AddonDependencyEntry.create("org.jboss.forge.addon:maven"),
					AddonDependencyEntry.create("org.jboss.forge.addon:projects"),
					AddonDependencyEntry.create("org.jboss.forge.addon.javaee7.batch:javaee7-batch"),
					AddonDependencyEntry.create("org.jboss.forge.addon:parser-java"));
	return archive;
}
 

开发者ID:javaee-samples,
项目名称:forge-addons,
代码行数:25,
代码来源:BatchNewJobXmlCommandTest.java

示例3: deploy

点赞 3

import org.jboss.forge.furnace.repositories.AddonDependencyEntry; //导入依赖的package包/类
protected void deploy(MutableAddonRepository repository)
{
   AddonId addon = addonInfo.getAddon();
   Set<File> resourceJars = addonInfo.getResources();

   if (resourceJars.isEmpty())
   {
      log.fine("No resource JARs found for " + addon);
   }

   Set<AddonDependencyEntry> addonDependencies = addonInfo.getDependencyEntries();
   if (addonDependencies.isEmpty())
   {
      log.fine("No dependencies found for addon " + addon);
   }
   log.info("Deploying addon " + addon);
   repository.deploy(addon, addonDependencies, resourceJars);
}
 

开发者ID:forge,
项目名称:furnace,
代码行数:19,
代码来源:DeployRequestImpl.java

示例4: addAutomaticDependencies

点赞 3

import org.jboss.forge.furnace.repositories.AddonDependencyEntry; //导入依赖的package包/类
@SuppressWarnings("unchecked")
private void addAutomaticDependencies(DeploymentDescription primaryDeployment, Class<?> classUnderTest,
         Method deploymentMethod, Collection<DeploymentDescription> deployments)
{
   for (AddonDependencyEntry dependency : getAddonSet(classUnderTest))
   {
      createAnnotatedDeployment(primaryDeployment,
               classUnderTest,
               deploymentMethod,
               deployments,
               dependency.getName(),
               dependency.getVersionRange().toString(),
               AddonDependency.class.getSimpleName(),
               true,
               dependency.isExported(),
               dependency.isOptional(),
               new Class[0],
               10000,
               TimeUnit.MILLISECONDS,
               NullException.class);
   }
}
 

开发者ID:forge,
项目名称:furnace,
代码行数:23,
代码来源:FurnaceDeploymentScenarioGenerator.java

示例5: deployToRepository

点赞 3

import org.jboss.forge.furnace.repositories.AddonDependencyEntry; //导入依赖的package包/类
private void deployToRepository(Archive<?> archive, MutableAddonRepository repository, final AddonId addonToDeploy)
{
   File destDir = repository.getAddonBaseDir(addonToDeploy);
   destDir.mkdirs();
   ShrinkWrapUtil.toFile(new File(destDir.getAbsolutePath(), archive.getName()), archive);
   ShrinkWrapUtil.unzip(destDir, archive);
   System.out.println("Furnace test harness is deploying [" + addonToDeploy + "] to repository [" + repository
            + "] ...");

   if (archive instanceof AddonDependencyAware)
   {
      repository.deploy(addonToDeploy,
               ((AddonDependencyAware<?>) archive).getAddonDependencies(),
               Collections.<File> emptyList());
   }
   else
   {
      repository.deploy(addonToDeploy,
               Collections.<AddonDependencyEntry> emptyList(),
               Collections.<File> emptyList());
   }

   repository.enable(addonToDeploy);
}
 

开发者ID:forge,
项目名称:furnace,
代码行数:25,
代码来源:FurnaceDeployableContainer.java

示例6: getDeployment

点赞 3

import org.jboss.forge.furnace.repositories.AddonDependencyEntry; //导入依赖的package包/类
@Deployment(order = 0)
@DeployToRepository("1")
public static AddonArchive getDeployment()
{
   AddonArchive archive = ShrinkWrap
            .create(AddonArchive.class)
            .addAsAddonDependencies(
                     AddonDependencyEntry.create("dep1", "1"),
                     AddonDependencyEntry.create("dep2", "2"),
                     AddonDependencyEntry.create("dep3", "3"),
                     AddonDependencyEntry.create("dep4", "4"),
                     AddonDependencyEntry.create("dep5", "5")
            );

   archive.addAsLocalServices(AddonRepositoryLoadingTest.class);

   return archive;
}
 

开发者ID:forge,
项目名称:furnace,
代码行数:19,
代码来源:AddonRepositoryLoadingTest.java

示例7: addAddonDependency

点赞 3

import org.jboss.forge.furnace.repositories.AddonDependencyEntry; //导入依赖的package包/类
private void addAddonDependency(Set<AddonView> views, AddonId found, Builder builder,
         AddonDependencyEntry dependency)
{
   AddonId addonId = stateManager.resolveAddonId(views, dependency.getName());
   ModuleIdentifier moduleId = null;
   if (addonId != null)
   {
      Addon addon = lifecycleManager.getAddon(views, addonId);
      moduleId = findCompatibleInstalledModule(addonId);
      if (moduleId != null)
      {
         builder.addDependency(DependencySpec.createModuleDependencySpec(
                  PathFilters.not(PathFilters.getMetaInfFilter()),
                  dependency.isExported() ? PathFilters.acceptAll() : PathFilters.rejectAll(),
                  this,
                  moduleCache.getModuleId(addon),
                  dependency.isOptional()));
      }
   }

   if (!dependency.isOptional() && (addonId == null || moduleId == null))
      throw new ContainerException("Dependency [" + dependency + "] could not be loaded for addon [" + found
               + "]");
}
 

开发者ID:forge,
项目名称:furnace,
代码行数:25,
代码来源:AddonModuleLoader.java

示例8: getDeployment

点赞 3

import org.jboss.forge.furnace.repositories.AddonDependencyEntry; //导入依赖的package包/类
@Deployment(order = 0)
@DeployToRepository("1")
public static ForgeArchive getDeployment()
{
   ForgeArchive archive = ShrinkWrap
            .create(ForgeArchive.class)
            .addAsAddonDependencies(
                     AddonDependencyEntry.create("dep1", "1"),
                     AddonDependencyEntry.create("dep2", "2"),
                     AddonDependencyEntry.create("dep3", "3"),
                     AddonDependencyEntry.create("dep4", "4"),
                     AddonDependencyEntry.create("dep5", "5")
            );

   archive.addAsLocalServices(AddonRepositoryLoadingTest.class);

   return archive;
}
 

开发者ID:koentsje,
项目名称:forge-furnace,
代码行数:19,
代码来源:AddonRepositoryLoadingTest.java

示例9: addAddonDependency

点赞 3

import org.jboss.forge.furnace.repositories.AddonDependencyEntry; //导入依赖的package包/类
private void addAddonDependency(Set<AddonView> views, AddonId found, Builder builder, AddonDependencyEntry dependency)
{
   AddonId addonId = stateManager.resolveAddonId(views, dependency.getName());
   ModuleIdentifier moduleId = null;
   if (addonId != null)
   {
      Addon addon = lifecycleManager.getAddon(views, addonId);
      moduleId = findCompatibleInstalledModule(addonId);
      if (moduleId != null)
      {
         builder.addDependency(DependencySpec.createModuleDependencySpec(
                  PathFilters.not(PathFilters.getMetaInfFilter()),
                  dependency.isExported() ? PathFilters.acceptAll() : PathFilters.rejectAll(),
                  this,
                  moduleCache.getModuleId(addon),
                  dependency.isOptional()));
      }
   }

   if (!dependency.isOptional() && (addonId == null || moduleId == null))
      throw new ContainerException("Dependency [" + dependency + "] could not be loaded for addon [" + found
               + "]");
}
 

开发者ID:koentsje,
项目名称:forge-furnace,
代码行数:24,
代码来源:AddonModuleLoader.java

示例10: testDeployAddonEntryNoDependencies

点赞 3

import org.jboss.forge.furnace.repositories.AddonDependencyEntry; //导入依赖的package包/类
@Test
public void testDeployAddonEntryNoDependencies() throws Exception
{
   File temp = File.createTempFile("addonDir", "test");
   temp.deleteOnExit();
   MutableAddonRepository repository = AddonRepositoryImpl.forDirectory(new FurnaceImpl(), temp);

   AddonId addon = AddonId.from("1", "2");
   ArrayList<File> resourceJars = new ArrayList<File>();
   File tempJar = File.createTempFile("addon" + addon.getName(), ".jar");
   tempJar.createNewFile();
   resourceJars.add(tempJar);

   Assert.assertFalse(repository.isDeployed(addon));
   repository.deploy(addon, new ArrayList<AddonDependencyEntry>(), resourceJars);
   Assert.assertTrue(repository.isDeployed(addon));

   Assert.assertFalse(repository.isEnabled(addon));
   repository.enable(addon);
   Assert.assertTrue(repository.isEnabled(addon));

   Assert.assertEquals(0, repository.getAddonDependencies(addon).size());
}
 

开发者ID:koentsje,
项目名称:forge-furnace,
代码行数:24,
代码来源:AddonRepositoryImplTest.java

示例11: testDeployAddonEntryNoDependenciesOrResources

点赞 3

import org.jboss.forge.furnace.repositories.AddonDependencyEntry; //导入依赖的package包/类
@Test
public void testDeployAddonEntryNoDependenciesOrResources() throws Exception
{
   File temp = File.createTempFile("addonDir", "test");
   temp.deleteOnExit();
   MutableAddonRepository repository = AddonRepositoryImpl.forDirectory(new FurnaceImpl(), temp);

   AddonId addon = AddonId.from("1", "2");

   Assert.assertFalse(repository.isDeployed(addon));
   repository.deploy(addon, new ArrayList<AddonDependencyEntry>(), new ArrayList<File>());
   Assert.assertTrue(repository.isDeployed(addon));

   Assert.assertFalse(repository.isEnabled(addon));
   repository.enable(addon);
   Assert.assertTrue(repository.isEnabled(addon));

   Assert.assertEquals(0, repository.getAddonDependencies(addon).size());
}
 

开发者ID:koentsje,
项目名称:forge-furnace,
代码行数:20,
代码来源:AddonRepositoryImplTest.java

示例12: testDeployAddonEntryMultipleDependencies

点赞 3

import org.jboss.forge.furnace.repositories.AddonDependencyEntry; //导入依赖的package包/类
@Test
public void testDeployAddonEntryMultipleDependencies() throws Exception
{
   File temp = File.createTempFile("addonDir", "test");
   temp.deleteOnExit();
   MutableAddonRepository repository = AddonRepositoryImpl.forDirectory(new FurnaceImpl(), temp);

   AddonId addon = AddonId.from("1", "2");
   AddonDependencyEntry dependency0 = AddonDependencyEntry.create("nm1", "ver", true, false);
   AddonDependencyEntry dependency1 = AddonDependencyEntry.create("nm2", "ver");

   repository.deploy(addon, Arrays.asList(dependency0, dependency1), new ArrayList<File>());

   Assert.assertEquals(2, repository.getAddonDependencies(addon).size());
   Assert.assertTrue(repository.getAddonDependencies(addon).contains(dependency0));
   Assert.assertTrue(repository.getAddonDependencies(addon).contains(dependency1));
}
 

开发者ID:koentsje,
项目名称:forge-furnace,
代码行数:18,
代码来源:AddonRepositoryImplTest.java

示例13: getDeployment

点赞 3

import org.jboss.forge.furnace.repositories.AddonDependencyEntry; //导入依赖的package包/类
@Deployment
@Dependencies({
            @AddonDependency(name = "org.jboss.windup.config:windup-config"),
            @AddonDependency(name = "org.jboss.windup.exec:windup-exec"),
            @AddonDependency(name = "org.jboss.windup.rules.apps:windup-rules-java"),
            @AddonDependency(name = "org.jboss.windup.reporting:windup-reporting"),
            @AddonDependency(name = "org.jboss.forge.furnace.container:cdi")
})
public static ForgeArchive getDeployment()
{
    final ForgeArchive archive = ShrinkWrap.create(ForgeArchive.class)
                .addBeansXML()
                .addClass(TestJavaClassTestRuleProvider.class)
                .addClass(JavaClassTest.class)
                .addAsAddonDependencies(
                            AddonDependencyEntry.create("org.jboss.windup.config:windup-config"),
                            AddonDependencyEntry.create("org.jboss.windup.exec:windup-exec"),
                            AddonDependencyEntry.create("org.jboss.windup.rules.apps:windup-rules-java"),
                            AddonDependencyEntry.create("org.jboss.windup.reporting:windup-reporting"),
                            AddonDependencyEntry.create("org.jboss.forge.furnace.container:cdi")
                );

    return archive;
}
 

开发者ID:windup,
项目名称:windup,
代码行数:25,
代码来源:JavaClassTestFile1.java

示例14: getDeployment

点赞 3

import org.jboss.forge.furnace.repositories.AddonDependencyEntry; //导入依赖的package包/类
@Deployment
@Dependencies({
            @AddonDependency(name = "org.jboss.windup.config:windup-config"),
            @AddonDependency(name = "org.jboss.windup.exec:windup-exec"),
            @AddonDependency(name = "org.jboss.windup.rules.apps:windup-rules-java"),
            @AddonDependency(name = "org.jboss.windup.reporting:windup-reporting"),
            @AddonDependency(name = "org.jboss.forge.furnace.container:cdi")
})
public static ForgeArchive getDeployment()
{
    final ForgeArchive archive = ShrinkWrap.create(ForgeArchive.class)
                .addBeansXML()
                .addClass(TestHintsClassificationsTestRuleProvider.class)
                .addAsAddonDependencies(
                            AddonDependencyEntry.create("org.jboss.windup.config:windup-config"),
                            AddonDependencyEntry.create("org.jboss.windup.exec:windup-exec"),
                            AddonDependencyEntry.create("org.jboss.windup.rules.apps:windup-rules-java"),
                            AddonDependencyEntry.create("org.jboss.windup.reporting:windup-reporting"),
                            AddonDependencyEntry.create("org.jboss.forge.furnace.container:cdi")
                );

    return archive;
}
 

开发者ID:windup,
项目名称:windup,
代码行数:24,
代码来源:JavaClassTestFile2.java

示例15: getDeployment

点赞 3

import org.jboss.forge.furnace.repositories.AddonDependencyEntry; //导入依赖的package包/类
@Deployment
@AddonDependencies({
    @AddonDependency(name = "org.jboss.windup.config:windup-config"),
    @AddonDependency(name = "org.jboss.forge.furnace.container:cdi")
})
public static AddonArchive getDeployment()
{
    final AddonArchive archive = ShrinkWrap
        .create(AddonArchive.class)
        .addClasses(TestIterationPayloadTestRuleProvider.class, TestChildModel.class, TestParentModel.class)
        .addBeansXML()
        .addAsResource(new File("src/test/java/org/jboss/windup/config/tags/test.tags.xml"), "/")
        .addAsAddonDependencies(
            AddonDependencyEntry.create("org.jboss.windup.config:windup-config"),
            AddonDependencyEntry.create("org.jboss.forge.furnace.container:cdi")
        );
    return archive;
}
 

开发者ID:windup,
项目名称:windup,
代码行数:19,
代码来源:TagsRulesTest.java

示例16: getDeployment

点赞 3

import org.jboss.forge.furnace.repositories.AddonDependencyEntry; //导入依赖的package包/类
@Deployment
@AddonDependencies({
    @AddonDependency(name = "org.jboss.windup.config:windup-config"),
    @AddonDependency(name = "org.jboss.forge.furnace.container:cdi")
})
public static AddonArchive getDeployment()
{
    final AddonArchive archive = ShrinkWrap
        .create(AddonArchive.class)
        .addClasses(TestIterationPayloadTestRuleProvider.class, TestChildModel.class, TestParentModel.class)
        .addBeansXML()
        .addAsResource(new File("src/test/java/org/jboss/windup/config/tags/test2.tags.xml"))
        .addAsAddonDependencies(
            AddonDependencyEntry.create("org.jboss.windup.config:windup-config"),
            AddonDependencyEntry.create("org.jboss.forge.furnace.container:cdi")
        );
    return archive;
}
 

开发者ID:windup,
项目名称:windup,
代码行数:19,
代码来源:TagServiceHolderTest.java

示例17: getDeployment

点赞 2

import org.jboss.forge.furnace.repositories.AddonDependencyEntry; //导入依赖的package包/类
@Deployment(order = 1)
public static AddonArchive getDeployment()
{
   AddonArchive archive = ShrinkWrap.create(AddonArchive.class)
            .addAsLocalServices(ProxyMethodHandlerDispatchTest.class)
            .addAsAddonDependencies(AddonDependencyEntry.create("dep"));

   return archive;
}
 

开发者ID:forge,
项目名称:furnace,
代码行数:10,
代码来源:ProxyMethodHandlerDispatchTest.java

示例18: getDeployment

点赞 2

import org.jboss.forge.furnace.repositories.AddonDependencyEntry; //导入依赖的package包/类
@Deployment(order = 1)
public static AddonArchive getDeployment()
{
   AddonArchive archive = ShrinkWrap.create(AddonArchive.class)
            .addAsLocalServices(ThreadProxyInterruptTest.class)
            .addAsAddonDependencies(AddonDependencyEntry.create("dep"));

   return archive;
}
 

开发者ID:forge,
项目名称:furnace,
代码行数:10,
代码来源:ThreadProxyInterruptTest.java

示例19: getDeployment

点赞 2

import org.jboss.forge.furnace.repositories.AddonDependencyEntry; //导入依赖的package包/类
@Deployment(order = 3)
public static AddonArchive getDeployment()
{
   AddonArchive archive = ShrinkWrap.create(AddonArchive.class)
            .addBeansXML()
            .addClass(MockResult.class)
            .addAsAddonDependencies(
                     AddonDependencyEntry.create("dep", "1")
            )
            .addAsLocalServices(ClassLoaderAdapterPassthroughTest.class);

   return archive;
}
 

开发者ID:forge,
项目名称:furnace,
代码行数:14,
代码来源:ClassLoaderAdapterPassthroughTest.java

示例20: getDeploymentDep1

点赞 2

import org.jboss.forge.furnace.repositories.AddonDependencyEntry; //导入依赖的package包/类
@Deployment(name = "dep1,1", testable = false, order = 2)
public static AddonArchive getDeploymentDep1()
{
   AddonArchive archive = ShrinkWrap.create(AddonArchive.class)
            .addClasses()
            .addAsAddonDependencies(AddonDependencyEntry.create("dep2", "2"))
            .addBeansXML();

   return archive;
}
 

开发者ID:forge,
项目名称:furnace,
代码行数:11,
代码来源:CLACProxiedCollectionsReturnTypeUnwrappingTest.java

示例21: getDeploymentDep1

点赞 2

import org.jboss.forge.furnace.repositories.AddonDependencyEntry; //导入依赖的package包/类
@Deployment(name = "dep1,1", testable = false, order = 2)
public static AddonArchive getDeploymentDep1()
{
   AddonArchive archive = ShrinkWrap.create(AddonArchive.class)
            .addClasses(MockContextConsumer.class, MockContext.class)
            .addAsLocalServices(MockContextConsumer.class)
            .addAsAddonDependencies(
                     AddonDependencyEntry.create("dep3")
            );

   return archive;
}
 

开发者ID:forge,
项目名称:furnace,
代码行数:13,
代码来源:ClassLoaderAdapterWhitelistLoaderLookupTest.java

示例22: getDeploymentDep1

点赞 2

import org.jboss.forge.furnace.repositories.AddonDependencyEntry; //导入依赖的package包/类
@Deployment(name = "dep1,1", testable = false, order = 2)
public static AddonArchive getDeploymentDep1()
{
   AddonArchive archive = ShrinkWrap.create(AddonArchive.class)
            .addClasses(MockContextConsumer.class, MockContext.class)
            .addBeansXML()
            .addAsAddonDependencies(
                     AddonDependencyEntry.create("dep3")
            );

   return archive;
}
 

开发者ID:forge,
项目名称:furnace,
代码行数:13,
代码来源:ClassLoaderAdapterWhitelistLoaderPassthroughTest.java

示例23: getDeploymentDep2

点赞 2

import org.jboss.forge.furnace.repositories.AddonDependencyEntry; //导入依赖的package包/类
@Deployment(name = "dep2,1", testable = false, order = 1)
public static AddonArchive getDeploymentDep2()
{
   AddonArchive archive = ShrinkWrap.create(AddonArchive.class)
            .addClasses(MockContextPayloadImpl.class)
            .addBeansXML()
            .addAsAddonDependencies(
                     AddonDependencyEntry.create("dep3")
            );

   return archive;
}
 

开发者ID:forge,
项目名称:furnace,
代码行数:13,
代码来源:ClassLoaderAdapterWhitelistLoaderPassthroughTest.java

示例24: getDeployment

点赞 2

import org.jboss.forge.furnace.repositories.AddonDependencyEntry; //导入依赖的package包/类
@Deployment(order = 3)
public static AddonArchive getDeployment()
{
   AddonArchive archive = ShrinkWrap.create(AddonArchive.class)
            .addBeansXML()
            .addClasses(IterableFactory.class, ClassWithClassAsParameter.class)
            .addAsAddonDependencies(
                     AddonDependencyEntry.create("dep2", "2")
            )
            .addAsLocalServices(ClassLoaderParameterUnwrappedTest.class);

   return archive;
}
 

开发者ID:forge,
项目名称:furnace,
代码行数:14,
代码来源:ClassLoaderParameterUnwrappedTest.java

示例25: getDeploymentB

点赞 2

import org.jboss.forge.furnace.repositories.AddonDependencyEntry; //导入依赖的package包/类
@Deployment(name = "B,1", testable = false, order = 2)
public static AddonArchive getDeploymentB()
{
   AddonArchive archive = ShrinkWrap.create(AddonArchive.class)
            .addClasses(Action1.class)
            .addAsAddonDependencies(
                     AddonDependencyEntry.create("D", "1")
            );

   return archive;
}
 

开发者ID:forge,
项目名称:furnace,
代码行数:12,
代码来源:SidewaysProxyAnonymousCollisionTest.java

示例26: getDeploymentC

点赞 2

import org.jboss.forge.furnace.repositories.AddonDependencyEntry; //导入依赖的package包/类
@Deployment(name = "C,1", testable = false, order = 1)
public static AddonArchive getDeploymentC()
{
   AddonArchive archive = ShrinkWrap.create(AddonArchive.class)
            .addClasses(Payload.class, Payload1.class)
            .addAsAddonDependencies(
                     AddonDependencyEntry.create("E", "1")
            );

   return archive;
}
 

开发者ID:forge,
项目名称:furnace,
代码行数:12,
代码来源:SidewaysProxyAnonymousCollisionTest.java

示例27: addGraphDependencies

点赞 2

import org.jboss.forge.furnace.repositories.AddonDependencyEntry; //导入依赖的package包/类
/**
 * @param info
 * @param graph
 */
private void addGraphDependencies(AddonInfo info, DirectedGraph<AddonVertex, AddonDependencyEdge> graph)
{
   AddonId addon = info.getAddon();
   AddonVertex rootVertex = new AddonVertex(addon.getName(), addon.getVersion());
   graph.addVertex(rootVertex);
   for (AddonDependencyEntry entry : info.getDependencyEntries())
   {
      AddonVertex depVertex = new AddonVertex(entry.getName(), entry.getVersionRange().getMax());
      graph.addVertex(depVertex);
      graph.addEdge(rootVertex, depVertex,
               new AddonDependencyEdge(entry.getVersionRange(), entry.isExported(), entry.isOptional()));
   }
}
 

开发者ID:forge,
项目名称:furnace,
代码行数:18,
代码来源:GenerateDOTMojo.java

示例28: addAsAddonDependencies

点赞 2

import org.jboss.forge.furnace.repositories.AddonDependencyEntry; //导入依赖的package包/类
@Override
public AddonArchive addAsAddonDependencies(AddonDependencyEntry... dependencies)
{
   if (dependencies != null)
      addonDependencies.addAll(Arrays.asList(dependencies));
   return this;
}
 

开发者ID:forge,
项目名称:furnace,
代码行数:8,
代码来源:AddonArchiveImpl.java

示例29: getAddonSet

点赞 2

import org.jboss.forge.furnace.repositories.AddonDependencyEntry; //导入依赖的package包/类
private Set<AddonDependencyEntry> getAddonSet(Class<?> classUnderTest)
{
   if (addonSet == null)
      buildDependencyMaps(classUnderTest);

   return addonSet;
}
 

开发者ID:forge,
项目名称:furnace,
代码行数:8,
代码来源:FurnaceDeploymentScenarioGenerator.java

示例30: getDeployment

点赞 2

import org.jboss.forge.furnace.repositories.AddonDependencyEntry; //导入依赖的package包/类
@Deployment(order = 1)
public static AddonArchive getDeployment()
{
   AddonArchive archive = ShrinkWrap.create(AddonArchive.class)
            .addAsAddonDependencies(
                     AddonDependencyEntry.create("dep1")
            );

   archive.addAsLocalServices(PostStartupEventTest.class);

   return archive;
}
 

开发者ID:forge,
项目名称:furnace,
代码行数:13,
代码来源:PostStartupEventTest.java

示例31: getDeployment

点赞 2

import org.jboss.forge.furnace.repositories.AddonDependencyEntry; //导入依赖的package包/类
@Deployment(order = 2)
public static AddonArchive getDeployment()
{
   AddonArchive archive = ShrinkWrap.create(AddonArchive.class)
            .addAsAddonDependencies(
                     AddonDependencyEntry.create("dep1")
            );

   archive.addAsLocalServices(PreShutdownEventTest.class);

   return archive;
}
 

开发者ID:forge,
项目名称:furnace,
代码行数:13,
代码来源:PreShutdownEventTest.java

示例32: getDeployment

点赞 2

import org.jboss.forge.furnace.repositories.AddonDependencyEntry; //导入依赖的package包/类
@Deployment(order = 0)
@DeployToRepository("1")
public static AddonArchive getDeployment()
{
   AddonArchive archive = ShrinkWrap
            .create(AddonArchive.class)
            .addAsAddonDependencies(
                     AddonDependencyEntry.create("dep1", "1"),
                     AddonDependencyEntry.create("dep2", "2")
            );

   archive.addAsLocalServices(MultipleRepositoryLoadingTest.class);

   return archive;
}
 

开发者ID:forge,
项目名称:furnace,
代码行数:16,
代码来源:MultipleRepositoryLoadingTest.java

示例33: getDeploymentDep1

点赞 2

import org.jboss.forge.furnace.repositories.AddonDependencyEntry; //导入依赖的package包/类
@Deployment(name = "dep1,1", testable = false, order = 2)
public static AddonArchive getDeploymentDep1()
{
   AddonArchive archive = ShrinkWrap.create(AddonArchive.class)
            .addClasses(MockServiceConsumer.class, MockService.class)
            .addAsAddonDependencies(
                     AddonDependencyEntry.create("dep3")
            );

   return archive;
}
 

开发者ID:forge,
项目名称:furnace,
代码行数:12,
代码来源:ImportedLookupTest.java

示例34: addContainerDependencies

点赞 2

import org.jboss.forge.furnace.repositories.AddonDependencyEntry; //导入依赖的package包/类
private void addContainerDependencies(Set<AddonView> views, AddonRepository repository, AddonId found,
         Builder builder)
                  throws ContainerException
{
   Set<AddonDependencyEntry> addons = repository.getAddonDependencies(found);
   for (AddonDependencyEntry dependency : addons)
   {
      /*
       * Containers should always take precedence at runtime.
       */
      if (dependency.getName().startsWith(CONTAINER_PREFIX))
         addAddonDependency(views, found, builder, dependency);
   }
}
 

开发者ID:forge,
项目名称:furnace,
代码行数:15,
代码来源:AddonModuleLoader.java

示例35: addAddonDependencies

点赞 2

import org.jboss.forge.furnace.repositories.AddonDependencyEntry; //导入依赖的package包/类
private void addAddonDependencies(Set<AddonView> views, AddonRepository repository, AddonId found, Builder builder)
         throws ContainerException
{
   Set<AddonDependencyEntry> addons = repository.getAddonDependencies(found);
   for (AddonDependencyEntry dependency : addons)
   {
      if (!dependency.getName().startsWith(CONTAINER_PREFIX))
         addAddonDependency(views, found, builder, dependency);
   }
}
 

开发者ID:forge,
项目名称:furnace,
代码行数:11,
代码来源:AddonModuleLoader.java

示例36: fromAddonDependencyEntries

点赞 2

import org.jboss.forge.furnace.repositories.AddonDependencyEntry; //导入依赖的package包/类
private Set<AddonDependency> fromAddonDependencyEntries(Addon addon,
         Set<AddonDependencyEntry> entries)
{
   Set<AddonDependency> result = new LinkedHashSet<AddonDependency>();
   for (AddonDependencyEntry entry : entries)
   {
      Set<AddonView> views = stateManager.getViewsOf(addon);
      AddonId dependencyId = stateManager.resolveAddonId(views, entry.getName());

      Addon dependency = null;
      if (dependencyId != null)
         dependency = lifecycleManager.getAddon(views.iterator().next(), dependencyId);

      if (dependency == null || dependency.getStatus().isMissing())
      {
         if (!entry.isOptional())
         {
            result.add(new MissingAddonDependencyImpl(entry));
         }
      }
      else
      {
         result.add(new AddonDependencyImpl(lock,
                  dependency,
                  entry.isExported(),
                  entry.isOptional()));
      }
   }
   return result;
}
 

开发者ID:forge,
项目名称:furnace,
代码行数:31,
代码来源:AddonLoader.java

示例37: getAddonDependencies

点赞 2

import org.jboss.forge.furnace.repositories.AddonDependencyEntry; //导入依赖的package包/类
@Override
public Set<AddonDependencyEntry> getAddonDependencies(final AddonId addon)
{
   return lock.performLocked(LockMode.READ, new Callable<Set<AddonDependencyEntry>>()
   {
      @Override
      public Set<AddonDependencyEntry> call() throws Exception
      {
         Set<AddonDependencyEntry> result = new LinkedHashSet<AddonDependencyEntry>();
         File descriptor = getAddonDescriptor(addon);

         try
         {
            Node installed = getXmlRoot(descriptor);

            List<Node> children = installed.get("dependencies/dependency");
            for (final Node child : children)
            {
               if (child != null)
               {
                  result.add(AddonDependencyEntry.create(
                           child.getAttribute(ATTR_NAME),
                           Versions.parseMultipleVersionRange(child.getAttribute(ATTR_VERSION)),
                           Boolean.valueOf(child.getAttribute(ATTR_EXPORT)),
                           Boolean.valueOf(child.getAttribute(ATTR_OPTIONAL))));
               }
            }
         }
         catch (FileNotFoundException e)
         {
            // already removed
         }

         return result;
      }
   });
}
 

开发者ID:forge,
项目名称:furnace,
代码行数:38,
代码来源:AddonRepositoryStorageStrategyImpl.java

示例38: getDeployment

点赞 2

import org.jboss.forge.furnace.repositories.AddonDependencyEntry; //导入依赖的package包/类
@Deployment(order = 3)
public static ForgeArchive getDeployment()
{
   ForgeArchive archive = ShrinkWrap.create(ForgeArchive.class)
            .addBeansXML()
            .addClass(MockResult.class)
            .addAsAddonDependencies(
                     AddonDependencyEntry.create("dep", "1")
            )
            .addAsLocalServices(ClassLoaderAdapterPassthroughTest.class);

   return archive;
}
 

开发者ID:koentsje,
项目名称:forge-furnace,
代码行数:14,
代码来源:ClassLoaderAdapterPassthroughTest.java


版权声明:本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系管理员进行删除。
喜欢 (0)