本文整理汇总了Java中org.jboss.arquillian.container.spi.event.container.AfterStart类的典型用法代码示例。如果您正苦于以下问题:Java AfterStart类的具体用法?Java AfterStart怎么用?Java AfterStart使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
AfterStart类属于org.jboss.arquillian.container.spi.event.container包,在下文中一共展示了AfterStart类的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: waitForDeployments
import org.jboss.arquillian.container.spi.event.container.AfterStart; //导入依赖的package包/类
/**
* Wait for the template resources to come up after the test container has
* been started. This allows the test container and the template resources
* to come up in parallel.
*/
public void waitForDeployments(@Observes(precedence = -100) AfterStart event, OpenShiftAdapter client, TemplateDetails details, TestClass testClass, CECubeConfiguration configuration, OpenShiftClient openshiftClient) throws Exception {
if (testClass == null) {
// nothing to do, since we're not in ClassScoped context
return;
}
if (details == null) {
log.warning(String.format("No environment for %s", testClass.getName()));
return;
}
log.info(String.format("Waiting for environment for %s", testClass.getName()));
try {
for (List<? extends OpenShiftResource> resources : details.getResources()) {
delay(client, resources);
}
} catch (Throwable t) {
logEvents(openshiftClient, configuration);
throw new DeploymentException("Error waiting for template resources to deploy: " + testClass.getName(), t);
}
}
开发者ID:jboss-openshift,项目名称:ce-arq,代码行数:25,代码来源:CEEnvironmentProcessor.java
示例2: waitForDeployments
import org.jboss.arquillian.container.spi.event.container.AfterStart; //导入依赖的package包/类
/**
* Wait for the template resources to come up after the test container has
* been started. This allows the test container and the template resources
* to come up in parallel.
*/
public void waitForDeployments(@Observes(precedence = -100) AfterStart event, OpenShiftAdapter client,
CEEnvironmentProcessor.TemplateDetails details, TestClass testClass, CubeOpenShiftConfiguration configuration, OpenShiftClient openshiftClient)
throws Exception {
if (testClass == null) {
// nothing to do, since we're not in ClassScoped context
return;
}
if (details == null) {
log.warning(String.format("No environment for %s", testClass.getName()));
return;
}
log.info(String.format("Waiting for environment for %s", testClass.getName()));
try {
delay(client, details.getResources());
} catch (Throwable t) {
throw new IllegalArgumentException("Error waiting for template resources to deploy: " + testClass.getName(), t);
}
}
开发者ID:arquillian,项目名称:arquillian-cube,代码行数:24,代码来源:TemplateContainerStarter.java
示例3: setupMessaging
import org.jboss.arquillian.container.spi.event.container.AfterStart; //导入依赖的package包/类
public void setupMessaging(@Observes AfterStart event) throws IOException, CommandFailedException, InterruptedException, TimeoutException {
final OnlineManagementClient client = createClient();
managementClient.set(client);
client.apply(new CliFile(new File("../configuration/jms-setup-wildfly.cli")));
Administration administration = new Administration(client);
administration.reloadIfRequired();
}
开发者ID:aerogear,项目名称:aerogear-unifiedpush-server,代码行数:9,代码来源:MessagingSetup.java
示例4: deploy
import org.jboss.arquillian.container.spi.event.container.AfterStart; //导入依赖的package包/类
public void deploy(@Observes final AfterStart event, final ContainerRegistry registry) {
executeInClassScope(new Callable<Void>() {
public Void call() throws Exception {
for (Deployment d : suiteDeploymentScenario.deployments()) {
deploymentEvent.fire(new DeployDeployment(findContainer(registry, event.getDeployableContainer()), d));
}
return null;
}
});
}
开发者ID:GoogleCloudPlatform,项目名称:appengine-tck,代码行数:11,代码来源:ArquillianSuiteExtension.java
示例5: deploy
import org.jboss.arquillian.container.spi.event.container.AfterStart; //导入依赖的package包/类
public void deploy(@Observes final AfterStart event, final ContainerRegistry registry) {
executeInClassScope(new Callable<Void>() {
public Void call() throws Exception {
for (Deployment d : suiteDeploymentScenario.deployments()) {
deploymentEvent.fire(
new DeployDeployment(findContainer(registry, event.getDeployableContainer()), d));
}
return null;
}
});
}
开发者ID:n-moser,项目名称:Conference,代码行数:14,代码来源:ArquillianSuiteExtension.java
示例6: handleAfterStart
import org.jboss.arquillian.container.spi.event.container.AfterStart; //导入依赖的package包/类
public void handleAfterStart(@Observes AfterStart event, Container container) throws Throwable {
// Provide {@link MBeanServerConnection} and {@link RepositoryMBean}
MBeanServerConnection mbeanServer = getMBeanServerConnection(container);
if (mbeanServer != null) {
mbeanServerInstance.set(mbeanServer);
}
}
开发者ID:tdiesler,项目名称:gravia,代码行数:9,代码来源:ManagedContainerSetupObserver.java
示例7: afterStartObserver
import org.jboss.arquillian.container.spi.event.container.AfterStart; //导入依赖的package包/类
/**
* Use this method to do stuff that should run after arquillian start
*
* @param event
* The observed event
* @throws Throwable
* Exception while handling the event
*/
public final void afterStartObserver(@Observes AfterStart event)
throws Throwable {
}
开发者ID:PureSolTechnologies,项目名称:Purifinity,代码行数:12,代码来源:ArquillianLifecycle.java
注:本文中的org.jboss.arquillian.container.spi.event.container.AfterStart类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论