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


Java ManifestBuilder.addManifestHeader方法代码示例

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


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

示例1: testBasicManifest

import org.jboss.gravia.resource.ManifestBuilder; //导入方法依赖的package包/类
@Test
public void testBasicManifest() throws IOException {

    ManifestBuilder builder = new ManifestBuilder();
    builder.addManifestHeader(Constants.GRAVIA_IDENTITY_CAPABILITY, "org.acme.foo;version=1.0.0");
    Manifest manifest = builder.getManifest();
    Assert.assertNotNull("Manifest not null", manifest);

    Attributes attributes = manifest.getMainAttributes();
    String value = attributes.getValue(Constants.GRAVIA_IDENTITY_CAPABILITY);
    Assert.assertEquals("org.acme.foo;version=1.0.0", value);
}
 
开发者ID:tdiesler,项目名称:gravia,代码行数:13,代码来源:ManifestBuilderTestCase.java

示例2: getModuleHeadersA

import org.jboss.gravia.resource.ManifestBuilder; //导入方法依赖的package包/类
private Dictionary<String,String> getModuleHeadersA() {
    ManifestBuilder builder = new ManifestBuilder();
    builder.addIdentityCapability(MODULE_A, "1.0.0");
    builder.addManifestHeader("Service-Component", "OSGI-INF/org.jboss.test.gravia.runtime.embedded.sub.a.ServiceFactoryB.xml");
    ManifestHeadersProvider headersProvider = new ManifestHeadersProvider(builder.getManifest());
    return headersProvider.getHeaders();
}
 
开发者ID:tdiesler,项目名称:gravia,代码行数:8,代码来源:ComponentFactoryTestCase.java

示例3: getModuleHeadersD

import org.jboss.gravia.resource.ManifestBuilder; //导入方法依赖的package包/类
private Dictionary<String,String> getModuleHeadersD() {
    ManifestBuilder builder = new ManifestBuilder();
    builder.addIdentityCapability(MODULE_C, "1.0.0");
    builder.addManifestHeader("Service-Component", "OSGI-INF/org.jboss.test.gravia.runtime.embedded.sub.a.ServiceC.xml");
    ManifestHeadersProvider headersProvider = new ManifestHeadersProvider(builder.getManifest());
    return headersProvider.getHeaders();
}
 
开发者ID:tdiesler,项目名称:gravia,代码行数:8,代码来源:ConfigurationModifiedTestCase.java

示例4: getModuleHeadersD

import org.jboss.gravia.resource.ManifestBuilder; //导入方法依赖的package包/类
private Dictionary<String,String> getModuleHeadersD() {
    ManifestBuilder builder = new ManifestBuilder();
    builder.addIdentityCapability(MODULE_D, "1.0.0");
    builder.addManifestHeader("Service-Component", "OSGI-INF/org.jboss.test.gravia.runtime.embedded.sub.d.ServiceD.xml");
    ManifestHeadersProvider headersProvider = new ManifestHeadersProvider(builder.getManifest());
    return headersProvider.getHeaders();
}
 
开发者ID:tdiesler,项目名称:gravia,代码行数:8,代码来源:ConfigurationAdminTestCase.java

示例5: getModuleHeadersD1

import org.jboss.gravia.resource.ManifestBuilder; //导入方法依赖的package包/类
private Dictionary<String,String> getModuleHeadersD1() {
    ManifestBuilder builder = new ManifestBuilder();
    builder.addIdentityCapability(MODULE_D1, "1.0.0");
    builder.addManifestHeader("Service-Component", "OSGI-INF/org.jboss.test.gravia.runtime.embedded.sub.d1.ServiceD1.xml");
    ManifestHeadersProvider headersProvider = new ManifestHeadersProvider(builder.getManifest());
    return headersProvider.getHeaders();
}
 
开发者ID:tdiesler,项目名称:gravia,代码行数:8,代码来源:ConfigurationAdminTestCase.java

示例6: getModuleHeadersA

import org.jboss.gravia.resource.ManifestBuilder; //导入方法依赖的package包/类
private Dictionary<String,String> getModuleHeadersA() {
    ManifestBuilder builder = new ManifestBuilder();
    builder.addIdentityCapability(MODULE_A, "1.0.0");
    builder.addManifestHeader("Service-Component", "OSGI-INF/org.jboss.test.gravia.runtime.embedded.sub.a.ServiceA.xml");
    ManifestHeadersProvider headersProvider = new ManifestHeadersProvider(builder.getManifest());
    return headersProvider.getHeaders();
}
 
开发者ID:tdiesler,项目名称:gravia,代码行数:8,代码来源:ServiceComponentTestCase.java

示例7: getModuleHeadersA1

import org.jboss.gravia.resource.ManifestBuilder; //导入方法依赖的package包/类
private Dictionary<String,String> getModuleHeadersA1() {
    ManifestBuilder builder = new ManifestBuilder();
    builder.addIdentityCapability(MODULE_A1, "1.0.0");
    builder.addManifestHeader("Service-Component", "OSGI-INF/org.jboss.test.gravia.runtime.embedded.sub.a1.ServiceA1.xml");
    ManifestHeadersProvider headersProvider = new ManifestHeadersProvider(builder.getManifest());
    return headersProvider.getHeaders();
}
 
开发者ID:tdiesler,项目名称:gravia,代码行数:8,代码来源:ServiceComponentTestCase.java

示例8: getModuleHeadersA

import org.jboss.gravia.resource.ManifestBuilder; //导入方法依赖的package包/类
private Dictionary<String,String> getModuleHeadersA() {
    ManifestBuilder builder = new ManifestBuilder();
    builder.addIdentityCapability(MODULE_A, "1.0.0");
    builder.addManifestHeader("Service-Component", "OSGI-INF/org.jboss.test.gravia.runtime.embedded.sub.a.EmbeddedServices.xml");
    ManifestHeadersProvider headersProvider = new ManifestHeadersProvider(builder.getManifest());
    return headersProvider.getHeaders();
}
 
开发者ID:tdiesler,项目名称:gravia,代码行数:8,代码来源:EmbeddedServicesTestCase.java


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