当前位置: 首页>>代码示例>>Java>>正文


Java ManifestBuilder类代码示例

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


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

示例1: getContentG1

import org.jboss.gravia.resource.ManifestBuilder; //导入依赖的package包/类
@Deployment(name = CONTENT_G1, managed = false, testable = false)
public static Archive<?> getContentG1() {
    WebArchive archive = ShrinkWrap.create(WebArchive.class, CONTENT_G1 + ".war");
    archive.addClasses(AnnotatedContextListener.class, WebAppContextListener.class);
    archive.addClasses(ModuleActivatorB.class);
    archive.setManifest(new Asset() {
        @Override
        public InputStream openStream() {
            ManifestBuilder builder = new ManifestBuilder();
            builder.addIdentityCapability(RESOURCE_G, Version.emptyVersion);
            builder.addManifestHeader(Constants.MODULE_ACTIVATOR, ModuleActivatorB.class.getName());
            return builder.openStream();
        }
    });
    return archive;
}
 
开发者ID:tdiesler,项目名称:fabric8poc,代码行数:17,代码来源:ProvisionerTest.java

示例2: getContentG2

import org.jboss.gravia.resource.ManifestBuilder; //导入依赖的package包/类
@Deployment(name = CONTENT_G2, managed = false, testable = false)
public static Archive<?> getContentG2() {
    JavaArchive archive = ShrinkWrap.create(JavaArchive.class, CONTENT_G2 + ".jar");
    archive.addClasses(ModuleActivatorB.class);
    archive.setManifest(new Asset() {
        @Override
        public InputStream openStream() {
            ManifestBuilder builder = new ManifestBuilder();
            builder.addIdentityCapability(RESOURCE_G, Version.emptyVersion);
            builder.addManifestHeader(Constants.MODULE_ACTIVATOR, ModuleActivatorB.class.getName());
            builder.addManifestHeader("Dependencies", "org.jboss.gravia," + RESOURCE_F);
            return builder.openStream();
        }
    });
    return archive;
}
 
开发者ID:tdiesler,项目名称:fabric8poc,代码行数:17,代码来源:ProvisionerTest.java

示例3: createDeployment

import org.jboss.gravia.resource.ManifestBuilder; //导入依赖的package包/类
@Deployment
public static EnterpriseArchive createDeployment() {
    return ShrinkWrap.create(EnterpriseArchive.class, "spring-jndi-binding-tests.ear")
        .addAsModule(
            ShrinkWrap.create(JavaArchive.class, "spring-jndi-binding-tests.jar")
                .addClasses(SpringContextBindingDependenciesEarTest.class, DelayedBinderServiceActivator.class,
                    DelayedBinderService.class, CamelContextStartupEventNotifier.class)
                .addAsResource("spring/jndi-bindings-camel-context.xml", "jndi-bindings-camel-context.xml")
                .addAsManifestResource(new StringAsset(DelayedBinderServiceActivator.class.getName()), "services/org.jboss.msc.service.ServiceActivator")
                .setManifest(() -> {
                    ManifestBuilder builder = new ManifestBuilder();
                    builder.addManifestHeader("Dependencies", "org.jboss.as.server");
                    return builder.openStream();
                })
        );
}
 
开发者ID:wildfly-extras,项目名称:wildfly-camel,代码行数:17,代码来源:SpringContextBindingDependenciesEarTest.java

示例4: deployment

import org.jboss.gravia.resource.ManifestBuilder; //导入依赖的package包/类
@Deployment
public static WebArchive deployment() {
    final WebArchive archive = ShrinkWrap.create(WebArchive.class, "jaxb-integration-tests.war");
    archive.addPackage(Customer.class.getPackage());
    archive.addClasses(XMLUtils.class);
    archive.addAsResource(new StringAsset("Customer"), "org/wildfly/camel/test/jaxb/model/jaxb.index");
    archive.addAsResource("jaxb/customer.xml", "customer.xml");
    archive.setManifest(new Asset() {
        @Override
        public InputStream openStream() {
            ManifestBuilder builder = new ManifestBuilder();
            builder.addManifestHeader("Dependencies", "org.jdom");
            return builder.openStream();
        }
    });
    return archive;
}
 
开发者ID:wildfly-extras,项目名称:wildfly-camel,代码行数:18,代码来源:JAXBIntegrationTest.java

示例5: deployment

import org.jboss.gravia.resource.ManifestBuilder; //导入依赖的package包/类
@Deployment
public static JavaArchive deployment() {
    final JavaArchive archive = ShrinkWrap.create(JavaArchive.class, "kafka-consumer-tests.jar");
    archive.addPackage(EmbeddedKafkaBroker.class.getPackage());
    archive.addPackage(EmbeddedZookeeper.class.getPackage());
    archive.addClass(TestUtils.class);
    archive.setManifest(new Asset() {
        @Override
        public InputStream openStream() {
            ManifestBuilder builder = new ManifestBuilder();
            builder.addManifestHeader("Dependencies", "org.apache.kafka");
            return builder.openStream();
        }
    });
    return archive;
}
 
开发者ID:wildfly-extras,项目名称:wildfly-camel,代码行数:17,代码来源:KafkaConsumerIntegrationTest.java

示例6: deployment

import org.jboss.gravia.resource.ManifestBuilder; //导入依赖的package包/类
@Deployment
public static JavaArchive deployment() {
    final JavaArchive archive = ShrinkWrap.create(JavaArchive.class, "kafka-producer-tests.jar");
    archive.addPackage(EmbeddedKafkaBroker.class.getPackage());
    archive.addPackage(EmbeddedZookeeper.class.getPackage());
    archive.addClasses(SimpleKafkaSerializer.class, SimpleKafkaPartitioner.class, TestUtils.class);
    archive.setManifest(new Asset() {
        @Override
        public InputStream openStream() {
            ManifestBuilder builder = new ManifestBuilder();
            builder.addManifestHeader("Dependencies", "org.apache.kafka");
            return builder.openStream();
        }
    });
    return archive;
}
 
开发者ID:wildfly-extras,项目名称:wildfly-camel,代码行数:17,代码来源:KafkaProducerIntegrationTest.java

示例7: getContentF1

import org.jboss.gravia.resource.ManifestBuilder; //导入依赖的package包/类
@Deployment(name = CONTENT_F1, managed = false, testable = false)
public static Archive<?> getContentF1() {
    JavaArchive archive = ShrinkWrap.create(JavaArchive.class, CONTENT_F1 + ".jar");
    archive.addClasses(ModuleStateB.class);
    archive.setManifest(new Asset() {
        @Override
        public InputStream openStream() {
            ManifestBuilder builder = new ManifestBuilder();
            builder.addIdentityCapability(RESOURCE_F, Version.emptyVersion);
            return builder.openStream();
        }
    });
    return archive;
}
 
开发者ID:tdiesler,项目名称:fabric8poc,代码行数:15,代码来源:ProvisionerTest.java

示例8: getContentF2

import org.jboss.gravia.resource.ManifestBuilder; //导入依赖的package包/类
@Deployment(name = CONTENT_F2, managed = false, testable = false)
public static Archive<?> getContentF2() {
    JavaArchive archive = ShrinkWrap.create(JavaArchive.class, CONTENT_F2 + ".jar");
    archive.addClasses(ModuleStateB.class);
    archive.setManifest(new Asset() {
        @Override
        public InputStream openStream() {
            ManifestBuilder builder = new ManifestBuilder();
            builder.addIdentityCapability(RESOURCE_F, Version.emptyVersion);
            builder.addManifestHeader("Dependencies", "org.jboss.gravia");
            return builder.openStream();
        }
    });
    return archive;
}
 
开发者ID:tdiesler,项目名称:fabric8poc,代码行数:16,代码来源:ProvisionerTest.java

示例9: getContentF1

import org.jboss.gravia.resource.ManifestBuilder; //导入依赖的package包/类
public static Archive<?> getContentF1() {
    JavaArchive archive = ShrinkWrap.create(JavaArchive.class, CONTENT_F1 + ".jar");
    archive.addClasses(ModuleStateB.class);
    archive.setManifest(new Asset() {
        @Override
        public InputStream openStream() {
            ManifestBuilder builder = new ManifestBuilder();
            builder.addIdentityCapability(RESOURCE_F, Version.emptyVersion);
            return builder.openStream();
        }
    });
    return archive;
}
 
开发者ID:tdiesler,项目名称:fabric8poc,代码行数:14,代码来源:ResourceItemTestBase.java

示例10: getContentF2

import org.jboss.gravia.resource.ManifestBuilder; //导入依赖的package包/类
public static Archive<?> getContentF2() {
    JavaArchive archive = ShrinkWrap.create(JavaArchive.class, CONTENT_F2 + ".jar");
    archive.addClasses(ModuleStateB.class);
    archive.setManifest(new Asset() {
        @Override
        public InputStream openStream() {
            ManifestBuilder builder = new ManifestBuilder();
            builder.addIdentityCapability(RESOURCE_F, Version.emptyVersion);
            builder.addManifestHeader("Dependencies", "org.jboss.gravia");
            return builder.openStream();
        }
    });
    return archive;
}
 
开发者ID:tdiesler,项目名称:fabric8poc,代码行数:15,代码来源:ResourceItemTestBase.java

示例11: getContentG1

import org.jboss.gravia.resource.ManifestBuilder; //导入依赖的package包/类
public static Archive<?> getContentG1() {
    WebArchive archive = ShrinkWrap.create(WebArchive.class, CONTENT_G1 + ".war");
    archive.addClasses(AnnotatedContextListener.class, WebAppContextListener.class);
    archive.addClasses(ModuleActivatorB.class);
    archive.setManifest(new Asset() {
        @Override
        public InputStream openStream() {
            ManifestBuilder builder = new ManifestBuilder();
            builder.addIdentityCapability(RESOURCE_G, Version.emptyVersion);
            builder.addManifestHeader(Constants.MODULE_ACTIVATOR, ModuleActivatorB.class.getName());
            return builder.openStream();
        }
    });
    return archive;
}
 
开发者ID:tdiesler,项目名称:fabric8poc,代码行数:16,代码来源:ResourceItemTestBase.java

示例12: getContentG2

import org.jboss.gravia.resource.ManifestBuilder; //导入依赖的package包/类
public static Archive<?> getContentG2() {
    JavaArchive archive = ShrinkWrap.create(JavaArchive.class, CONTENT_G2 + ".jar");
    archive.addClasses(ModuleActivatorB.class);
    archive.setManifest(new Asset() {
        @Override
        public InputStream openStream() {
            ManifestBuilder builder = new ManifestBuilder();
            builder.addIdentityCapability(RESOURCE_G, Version.emptyVersion);
            builder.addManifestHeader(Constants.MODULE_ACTIVATOR, ModuleActivatorB.class.getName());
            builder.addManifestHeader("Dependencies", "org.jboss.gravia," + RESOURCE_F);
            return builder.openStream();
        }
    });
    return archive;
}
 
开发者ID:tdiesler,项目名称:fabric8poc,代码行数:16,代码来源:ResourceItemTestBase.java

示例13: createDeployment

import org.jboss.gravia.resource.ManifestBuilder; //导入依赖的package包/类
@Deployment
public static JavaArchive createDeployment() {
    return ShrinkWrap.create(JavaArchive.class, "camel-system-tests.jar")
        .addClass(DMRUtils.class)
        .setManifest(() -> {
            ManifestBuilder builder = new ManifestBuilder();
            builder.addManifestHeader("Dependencies", "org.jboss.dmr,org.jboss.as.controller-client");
            return builder.openStream();
        });
}
 
开发者ID:wildfly-extras,项目名称:wildfly-camel,代码行数:11,代码来源:SystemContextTest.java

示例14: createdeployment

import org.jboss.gravia.resource.ManifestBuilder; //导入依赖的package包/类
@Deployment
public static JavaArchive createdeployment() {
    final JavaArchive archive = ShrinkWrap.create(JavaArchive.class, "camel-deployment-tests");
    archive.addAsResource("spring/transform6-camel-context.xml", "some-other-name.xml");
    archive.setManifest(new Asset() {
        @Override
        public InputStream openStream() {
            ManifestBuilder builder = new ManifestBuilder();
            builder.addManifestHeader("Dependencies", "org.jboss.as.controller-client");
            return builder.openStream();
        }
    });
    return archive;
}
 
开发者ID:wildfly-extras,项目名称:wildfly-camel,代码行数:15,代码来源:SpringContextDeploymentTest.java

示例15: createDeployment

import org.jboss.gravia.resource.ManifestBuilder; //导入依赖的package包/类
@Deployment
public static JavaArchive createDeployment() {
    final JavaArchive archive = ShrinkWrap.create(JavaArchive.class, "spring-global-logger-tests")
        .addClass(LogUtils.class)
        .setManifest(() -> {
            ManifestBuilder builder = new ManifestBuilder();
            builder.addManifestHeader("Logging-Profile", "camel-logging-profile");
            return builder.openStream();
        })
        .addAsResource("logging/loggingC-camel-context.xml", "logging-camel-context.xml");
    return archive;
}
 
开发者ID:wildfly-extras,项目名称:wildfly-camel,代码行数:13,代码来源:SpringGlobalLoggerIntegrationTest.java


注:本文中的org.jboss.gravia.resource.ManifestBuilder类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。