本文整理汇总了Java中org.jboss.shrinkwrap.api.spec.JavaArchive.addAsManifestResource方法的典型用法代码示例。如果您正苦于以下问题:Java JavaArchive.addAsManifestResource方法的具体用法?Java JavaArchive.addAsManifestResource怎么用?Java JavaArchive.addAsManifestResource使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.jboss.shrinkwrap.api.spec.JavaArchive
的用法示例。
在下文中一共展示了JavaArchive.addAsManifestResource方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: createEJBDeployment
import org.jboss.shrinkwrap.api.spec.JavaArchive; //导入方法依赖的package包/类
@Deployment
public static EnterpriseArchive createEJBDeployment() {
final EnterpriseArchive ear = create(EnterpriseArchive.class, "remoting-remote-naming-test.ear");
final JavaArchive jar = create(JavaArchive.class, "remoting-remote-naming-test.jar");
jar.addPackage(Machine.class.getPackage());
jar.addAsManifestResource(new FileAsset(new File("src/test/resources/META-INF/ejb-jar-remoting.xml")),
"ejb-jar.xml");
ear.addAsModule(jar);
return ear;
}
开发者ID:PacktPublishing,项目名称:Mastering-Java-EE-Development-with-WildFly,代码行数:11,代码来源:RemotingNamingTestCase.java
示例2: createEJBDeployment
import org.jboss.shrinkwrap.api.spec.JavaArchive; //导入方法依赖的package包/类
@Deployment
public static JavaArchive createEJBDeployment() {
final JavaArchive jar = create(JavaArchive.class, "scopes-test.jar");
jar.addPackage(MyPosts.class.getPackage());
jar.addAsManifestResource(new FileAsset(new File("src/test/resources/META-INF/persistence-test.xml")),
"persistence.xml");
return jar;
}
开发者ID:PacktPublishing,项目名称:Mastering-Java-EE-Development-with-WildFly,代码行数:9,代码来源:ScopesTestCase.java
示例3: createEJBDeployment
import org.jboss.shrinkwrap.api.spec.JavaArchive; //导入方法依赖的package包/类
@Deployment
public static JavaArchive createEJBDeployment() {
final JavaArchive jar = create(JavaArchive.class, "exception-test.jar");
jar.addPackage(RequiredException.class.getPackage());
jar.addAsManifestResource(new FileAsset(new File("src/test/resources/META-INF/persistence-test.xml")),
"persistence.xml");
return jar;
}
开发者ID:PacktPublishing,项目名称:Mastering-Java-EE-Development-with-WildFly,代码行数:9,代码来源:ExceptionTestCase.java
示例4: createEJBDeployment
import org.jboss.shrinkwrap.api.spec.JavaArchive; //导入方法依赖的package包/类
@Deployment
public static JavaArchive createEJBDeployment() {
final JavaArchive jar = create(JavaArchive.class, "remoting-message.jar");
jar.addAsResource(new FileAsset(new File("src/test/resources/application-users.properties")),
"users.properties");
jar.addAsResource(new FileAsset(new File("src/test/resources/application-roles.properties")),
"roles.properties");
jar.addAsManifestResource(INSTANCE, "beans.xml");
return jar;
}
开发者ID:PacktPublishing,项目名称:Mastering-Java-EE-Development-with-WildFly,代码行数:11,代码来源:RemoteTestCase.java
示例5: createJavaDeployment
import org.jboss.shrinkwrap.api.spec.JavaArchive; //导入方法依赖的package包/类
@Deployment
public static JavaArchive createJavaDeployment() {
final JavaArchive jar = create(JavaArchive.class, "readuncommitted-test.jar");
jar.addPackage(MyCallableTask.class.getPackage());
jar.addClass(Account.class);
jar.addAsManifestResource(new FileAsset(new File("src/test/resources/isolations/readuncommitted-test.xml")),
"persistence.xml");
jar.addAsResource(new FileAsset(new File("src/test/resources/store.import.sql")), "store.import.sql");
jar.addAsManifestResource(new FileAsset(new File("src/test/resources/META-INF/MANIFEST.MF")), "MANIFEST.MF");
jar.addAsManifestResource(INSTANCE, "beans.xml");
return jar;
}
开发者ID:PacktPublishing,项目名称:Mastering-Java-EE-Development-with-WildFly,代码行数:13,代码来源:ReadUncommittedTestCase.java
示例6: createJavaDeployment
import org.jboss.shrinkwrap.api.spec.JavaArchive; //导入方法依赖的package包/类
@Deployment
public static JavaArchive createJavaDeployment() {
final JavaArchive jar = create(JavaArchive.class, "event-test.jar");
jar.addPackage(Bill.class.getPackage());
jar.addAsManifestResource(INSTANCE, "beans.xml");
return jar;
}
开发者ID:PacktPublishing,项目名称:Mastering-Java-EE-Development-with-WildFly,代码行数:8,代码来源:EventTestCase.java
示例7: createEJBDeployment
import org.jboss.shrinkwrap.api.spec.JavaArchive; //导入方法依赖的package包/类
@Deployment
public static EnterpriseArchive createEJBDeployment() {
final EnterpriseArchive ear = create(EnterpriseArchive.class, "xml-test.ear");
final JavaArchive jar = create(JavaArchive.class, "xml-test.jar");
jar.addPackage(XMLRemote.class.getPackage());
jar.addAsManifestResource(new FileAsset(new File("src/test/resources/META-INF/ejb-jar.xml")), "ejb-jar.xml");
ear.addAsModule(jar);
return ear;
}
示例8: createJavaDeployment
import org.jboss.shrinkwrap.api.spec.JavaArchive; //导入方法依赖的package包/类
@Deployment
public static JavaArchive createJavaDeployment() {
final JavaArchive jar = create(JavaArchive.class, "inject-spi-test.jar");
jar.addPackage(Car.class.getPackage());
jar.addAsManifestResource(INSTANCE, "beans.xml");
jar.addAsManifestResource(
new FileAsset(new File("src/main/resources/META-INF/services/javax.enterprise.inject.spi.Extension")),
"services/javax.enterprise.inject.spi.Extension");
return jar;
}
开发者ID:PacktPublishing,项目名称:Mastering-Java-EE-Development-with-WildFly,代码行数:11,代码来源:InjectSPITestCase.java
示例9: createJavaDeployment
import org.jboss.shrinkwrap.api.spec.JavaArchive; //导入方法依赖的package包/类
@Deployment
public static JavaArchive createJavaDeployment() {
final JavaArchive jar = create(JavaArchive.class, "serializable-test.jar");
jar.addPackage(MyCallableTask.class.getPackage());
jar.addClass(Account.class);
jar.addAsManifestResource(new FileAsset(new File("src/test/resources/isolations/serializable-test.xml")),
"persistence.xml");
jar.addAsResource(new FileAsset(new File("src/test/resources/store.import.sql")), "store.import.sql");
jar.addAsManifestResource(new FileAsset(new File("src/test/resources/META-INF/MANIFEST.MF")), "MANIFEST.MF");
jar.addAsManifestResource(INSTANCE, "beans.xml");
return jar;
}
开发者ID:PacktPublishing,项目名称:Mastering-Java-EE-Development-with-WildFly,代码行数:13,代码来源:SerializableTestCase.java
示例10: createEJBDeployment
import org.jboss.shrinkwrap.api.spec.JavaArchive; //导入方法依赖的package包/类
@Deployment
public static JavaArchive createEJBDeployment() {
final JavaArchive jar = create(JavaArchive.class, "distributed-test.jar");
jar.addPackage(Magazine.class.getPackage());
jar.addAsManifestResource(new FileAsset(new File("src/test/resources/distributed/persistence-magazine.xml")),
"persistence.xml");
jar.addAsManifestResource(new FileAsset(new File("src/test/resources/META-INF/MANIFEST.MF")), "MANIFEST.MF");
jar.addAsManifestResource(INSTANCE, "beans.xml");
return jar;
}
开发者ID:PacktPublishing,项目名称:Mastering-Java-EE-Development-with-WildFly,代码行数:11,代码来源:DistributedTestCase.java
示例11: createEJBDeployment
import org.jboss.shrinkwrap.api.spec.JavaArchive; //导入方法依赖的package包/类
@Deployment
public static JavaArchive createEJBDeployment() {
final JavaArchive jar = create(JavaArchive.class, "commit-test.jar");
jar.addPackage(Account.class.getPackage());
jar.addAsManifestResource(new FileAsset(new File("src/test/resources/META-INF/persistence-test.xml")),
"persistence.xml");
jar.addAsResource(new FileAsset(new File("src/test/resources/store.import.sql")), "store.import.sql");
jar.addAsManifestResource(INSTANCE, "beans.xml");
return jar;
}
开发者ID:PacktPublishing,项目名称:Mastering-Java-EE-Development-with-WildFly,代码行数:11,代码来源:CommitTestCase.java
示例12: createJavaDeployment
import org.jboss.shrinkwrap.api.spec.JavaArchive; //导入方法依赖的package包/类
@Deployment
public static JavaArchive createJavaDeployment() {
final JavaArchive jar = create(JavaArchive.class, "readcommitted-test.jar");
jar.addPackage(MyCallableTask.class.getPackage());
jar.addClass(Account.class);
jar.addAsManifestResource(new FileAsset(new File("src/test/resources/isolations/readcommitted-test.xml")),
"persistence.xml");
jar.addAsResource(new FileAsset(new File("src/test/resources/store.import.sql")), "store.import.sql");
jar.addAsManifestResource(new FileAsset(new File("src/test/resources/META-INF/MANIFEST.MF")), "MANIFEST.MF");
jar.addAsManifestResource(INSTANCE, "beans.xml");
return jar;
}
开发者ID:PacktPublishing,项目名称:Mastering-Java-EE-Development-with-WildFly,代码行数:13,代码来源:ReadCommittedTestCase.java
示例13: createJavaDeployment
import org.jboss.shrinkwrap.api.spec.JavaArchive; //导入方法依赖的package包/类
@Deployment
public static JavaArchive createJavaDeployment() {
final JavaArchive jar = create(JavaArchive.class, "concurrent-test.jar");
jar.addClass(MyCallableTask.class);
jar.addClass(MyTaskWithTransaction.class);
jar.addClass(Product.class);
jar.addClass(MyTransactionScopedBean.class);
jar.addClass(ConcurrentStatus.class);
jar.addAsManifestResource(INSTANCE, "beans.xml");
return jar;
}
开发者ID:PacktPublishing,项目名称:Mastering-Java-EE-Development-with-WildFly,代码行数:12,代码来源:ConcurrentTestCase.java
示例14: createJavaDeployment
import org.jboss.shrinkwrap.api.spec.JavaArchive; //导入方法依赖的package包/类
@Deployment
public static JavaArchive createJavaDeployment() {
final JavaArchive jar = create(JavaArchive.class, "stored-test.jar");
jar.addAsManifestResource(INSTANCE, "beans.xml");
jar.addAsManifestResource(new FileAsset(new File("src/test/resources/META-INF/persistence-store.xml")),
"persistence.xml");
jar.addAsResource(new FileAsset(new File("src/test/resources/store.import.sql")), "store.import.sql");
return jar;
}
开发者ID:PacktPublishing,项目名称:Mastering-Java-EE-Development-with-WildFly,代码行数:10,代码来源:StoreProcedureTestCase.java
示例15: createCDIDeployment
import org.jboss.shrinkwrap.api.spec.JavaArchive; //导入方法依赖的package包/类
@Deployment
public static JavaArchive createCDIDeployment() {
final JavaArchive jar = create(JavaArchive.class, "interceptors-cdi-test.jar");
jar.addPackage(Audit.class.getPackage());
jar.addPackage(Item.class.getPackage());
jar.addAsManifestResource(new FileAsset(new File("src/test/resources/META-INF/beans-interceptors.xml")),
"beans.xml");
return jar;
}
开发者ID:PacktPublishing,项目名称:Mastering-Java-EE-Development-with-WildFly,代码行数:10,代码来源:InterceptorsTestCase.java