org.jboss.arquillian.container.spi.event.DeployManagedDeployments Java Examples
The following examples show how to use
org.jboss.arquillian.container.spi.event.DeployManagedDeployments.
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: SuiteDeployer.java From arquillian-suite-extension with Apache License 2.0 | 5 votes |
/** * Method ignoring DeployManagedDeployments events if already deployed. * * @param eventContext Event to check */ public void blockDeployManagedDeploymentsWhenNeeded(@Observes EventContext<DeployManagedDeployments> eventContext) { if (!extensionEnabled()) { eventContext.proceed(); } else if (deployDeployments) { deployDeployments = false; debug("NOT Blocking DeployManagedDeployments event {0}", eventContext.getEvent().toString()); eventContext.proceed(); } else { // Do nothing with event. debug("Blocking DeployManagedDeployments event {0}", eventContext.getEvent().toString()); } }
Example #2
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 #3
Source File: ArquillianSuiteExtension.java From appengine-tck with Apache License 2.0 | 4 votes |
public void blockDeployManagedDeployments(@Observes EventContext<DeployManagedDeployments> ignored) { // We need to block DeployManagedDeployments event }