org.jboss.as.arquillian.service.InContainerManagementClientExtension Maven / Gradle / Ivy
The newest version!
/*
* Copyright The WildFly Authors
* SPDX-License-Identifier: Apache-2.0
*/
package org.jboss.as.arquillian.service;
import org.jboss.arquillian.container.test.spi.RemoteLoadableExtension;
import org.jboss.arquillian.core.spi.LoadableExtension;
import org.jboss.arquillian.test.spi.enricher.resource.ResourceProvider;
/**
* Extension that allows the management client to be injected from inside the container
*
* @author Stuart Douglas
*/
public class InContainerManagementClientExtension implements RemoteLoadableExtension {
@Override
public void register(LoadableExtension.ExtensionBuilder builder) {
builder.observer(InContainerManagementClientProvider.class);
builder.service(ResourceProvider.class, InContainerManagementClientProvider.class);
}
}