本文整理汇总了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);
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}