org.jboss.arquillian.container.spi.client.deployment.Deployment Java Examples
The following examples show how to use
org.jboss.arquillian.container.spi.client.deployment.Deployment.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: FurnaceDeployableContainer.java From furnace with Eclipse Public License 1.0 | 6 votes |
private AddonId getAddonEntry(Deployment deployment) { if (!deployedAddons.containsKey(deployment)) { String[] coordinates = deployment.getDescription().getName().split(","); AddonId entry; if (coordinates.length == 3) entry = AddonId.from(coordinates[0], coordinates[1], coordinates[2]); else if (coordinates.length == 2) entry = AddonId.from(coordinates[0], coordinates[1]); else if (coordinates.length == 1) entry = AddonId.from(coordinates[0], UUID.randomUUID().toString()); else entry = AddonId.from(UUID.randomUUID().toString(), UUID.randomUUID().toString()); deployedAddons.put(deployment, entry); } return deployedAddons.get(deployment); }
Example #2
Source File: ArquillianSuiteExtension.java From appengine-tck with Apache License 2.0 | 5 votes |
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; } }); }
Example #3
Source File: ArquillianSuiteExtension.java From appengine-tck with Apache License 2.0 | 5 votes |
public void undeploy(@Observes final BeforeStop event, final ContainerRegistry registry) { executeInClassScope(new Callable<Void>() { public Void call() throws Exception { for (Deployment d : suiteDeploymentScenario.deployments()) { deploymentEvent.fire(new UnDeployDeployment(findContainer(registry, event.getDeployableContainer()), d)); } return null; } }); }
Example #4
Source File: KeycloakContainerDeployController.java From keycloak with Apache License 2.0 | 5 votes |
@Override public void deployManaged(DeployManagedDeployments event) throws Exception { forEachManagedDeployment(new ContainerDeployController.Operation<Container, Deployment>() { @Inject private Event<DeploymentEvent> event; @Override public void perform(Container container, Deployment deployment) throws Exception { if (runOnServerDeploymentOnRemote(deployment)) return; if (container.getState().equals(Container.State.STARTED)) { event.fire(new DeployDeployment(container, deployment)); } } }); }
Example #5
Source File: KeycloakContainerDeployController.java From keycloak with Apache License 2.0 | 5 votes |
private void forEachManagedDeployment(ContainerDeployController.Operation<Container, Deployment> operation) throws Exception { DeploymentScenario scenario = this.deploymentScenario.get(); if (scenario == null) { return; } forEachDeployment(scenario.managedDeploymentsInDeployOrder(), operation); }
Example #6
Source File: KeycloakContainerDeployController.java From keycloak with Apache License 2.0 | 5 votes |
private void forEachDeployment(List<Deployment> deployments, ContainerDeployController.Operation<Container, Deployment> operation) throws Exception { injector.get().inject(operation); ContainerRegistry containerRegistry = this.containerRegistry.get(); if (containerRegistry == null) { return; } for (Deployment deployment : deployments) { Container container = containerRegistry.getContainer(deployment.getDescription().getTarget()); operation.perform(container, deployment); } }
Example #7
Source File: KeycloakContainerDeployController.java From keycloak with Apache License 2.0 | 4 votes |
private boolean runOnServerDeploymentOnRemote(Deployment deployment) { return AuthServerTestEnricher.isAuthServerRemote() && deployment.getDescription().getArchive().getName().equals("run-on-server-classes.war"); }