当前位置: 首页>>代码示例>>Java>>正文


Java ResourceProvider类代码示例

本文整理汇总了Java中org.jboss.arquillian.test.spi.enricher.resource.ResourceProvider的典型用法代码示例。如果您正苦于以下问题:Java ResourceProvider类的具体用法?Java ResourceProvider怎么用?Java ResourceProvider使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


ResourceProvider类属于org.jboss.arquillian.test.spi.enricher.resource包,在下文中一共展示了ResourceProvider类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: register

import org.jboss.arquillian.test.spi.enricher.resource.ResourceProvider; //导入依赖的package包/类
@Override
public void register(ExtensionBuilder extensionBuilder) {

    extensionBuilder.observer(InstallSeleniumCube.class);
    extensionBuilder.observer(DroneOverwriteConfigurator.class);
    extensionBuilder.observer(CubeDroneConfigurator.class);
    extensionBuilder.observer(VncRecorderLifecycleManager.class);
    extensionBuilder.observer(VideoConversionLifecycleManager.class);

    overrideWebDriver(extensionBuilder, FirefoxDriverFactory.class);
    overrideWebDriver(extensionBuilder, ChromeDriverFactory.class);
    overrideWebDriver(extensionBuilder, HtmlUnitDriverFactory.class);

    if (isGrapheneInStandaloneMode()) {
        extensionBuilder.override(ResourceProvider.class, CustomizableURLResourceProvider.class,
            DockerCubeCustomizableURLResourceProvider.class);
    }
}
 
开发者ID:arquillian,项目名称:arquillian-cube,代码行数:19,代码来源:CubeDockerDroneExtension.java

示例2: getNext

import org.jboss.arquillian.test.spi.enricher.resource.ResourceProvider; //导入依赖的package包/类
private ResourceProvider getNext() {
    if (next != null) {
        return next;
    }

    synchronized (this) {
        Collection<ResourceProvider> providers = serviceLoader.get().all(ResourceProvider.class);
        for (ResourceProvider provider : providers) {
            if (!(provider instanceof KuberntesServiceUrlResourceProvider) && provider.canProvide(URL.class)) {
                this.next = provider;
                break;
            }
        }
    }
    return next;
}
 
开发者ID:arquillian,项目名称:arquillian-cube,代码行数:17,代码来源:KuberntesServiceUrlResourceProvider.java

示例3: register

import org.jboss.arquillian.test.spi.enricher.resource.ResourceProvider; //导入依赖的package包/类
@Override
public void register(final ExtensionBuilder builder) {

    builder.service(DeploymentExceptionTransformer.class, ExceptionTransformer.class);
    builder.service(ResourceProvider.class, ArchiveDeployerProvider.class);
    builder.service(ResourceProvider.class, ManagementClientProvider.class);
    builder.service(TestEnricher.class, ContainerResourceTestEnricher.class);

    builder.observer(ServerSetupObserver.class);

    // WildFlyContainerController
    builder
            .service(ResourceProvider.class, ClientWildFlyContainerControllerProvider.class)
            .observer(ClientWildFlyContainerControllerCreator.class)
            .observer(WildFlyContainerCommandObserver.class)
            .observer(WildFlyContainerLifecycleController.class)
    ;

}
 
开发者ID:wildfly,项目名称:wildfly-arquillian,代码行数:20,代码来源:CommonContainerExtension.java

示例4: register

import org.jboss.arquillian.test.spi.enricher.resource.ResourceProvider; //导入依赖的package包/类
@Override
public void register(final ExtensionBuilder builder) {
    if (ArquillianUtil.isCurrentAdapter(ADAPTER)) {
        builder.service(DeployableContainer.class, EmbeddedTomEEContainer.class)
            .observer(DeploymentExceptionObserver.class)
            .observer(RemoteInitialContextObserver.class)
            .observer(TestObserver.class)
            .service(TestEnricher.class, TomEEInjectionEnricher.class)
            .service(ResourceProvider.class, DeploymentExceptionProvider.class);

        try {
            builder.service(TransactionProvider.class,
                    (Class<? extends TransactionProvider>) Thread.currentThread().getContextClassLoader()
                            .loadClass("org.apache.openejb.arquillian.transaction.OpenEJBTransactionProvider"));
        } catch (final Throwable t) {
            // skip, not mandatory
        }
    }
}
 
开发者ID:apache,项目名称:tomee,代码行数:20,代码来源:EmbeddedTomEEExtension.java

示例5: register

import org.jboss.arquillian.test.spi.enricher.resource.ResourceProvider; //导入依赖的package包/类
@Override
public void register(final ExtensionBuilder builder) {
    if (ArquillianUtil.isCurrentAdapter(ADAPTER)) {

        final ReentrantLock l = lock;
        l.lock();

        try {

            if (!registered.getAndSet(true)) {

                try {
                    builder.observer(RemoteInitialContextObserver.class);
                    builder.observer(DeploymentExceptionObserver.class);
                    builder.service(DeployableContainer.class, RemoteTomEEContainer.class)
                                                .service(AuxiliaryArchiveAppender.class, RemoteTomEEEJBEnricherArchiveAppender.class)
                                                .service(ResourceProvider.class, DeploymentExceptionProvider.class);
                } catch (final IllegalArgumentException e) {
                    Logger.getLogger(RemoteTomEEExtension.class.getName()).log(Level.WARNING, "RemoteTomEEExtension: " + e.getMessage());
                }
            }
        } finally {
            l.unlock();
        }
    }
}
 
开发者ID:apache,项目名称:tomee,代码行数:27,代码来源:RemoteTomEEExtension.java

示例6: register

import org.jboss.arquillian.test.spi.enricher.resource.ResourceProvider; //导入依赖的package包/类
public void register(ExtensionBuilder builder) {
    // check if the extension is not disabled by a system property
    if (System.getProperty(ArquillianConfig.SYSTEM_PROPERTY_DISABLE_EXTENSION) != null) {
        return;
    }
    builder.observer(SunstoneObserver.class).service(ResourceProvider.class, CloudsRegistryResourceProvider.class)
            .service(ResourceProvider.class, CloudProviderResourceProvider.class)
            .service(ResourceProvider.class, NodeResourceProvider.class)
            .override(ResourceProvider.class, URLResourceProvider.class, SunstoneURLResourceProvider.class);
}
 
开发者ID:wildfly-extras,项目名称:sunstone,代码行数:11,代码来源:SunstoneExtension.java

示例7: register

import org.jboss.arquillian.test.spi.enricher.resource.ResourceProvider; //导入依赖的package包/类
@Override
public void register(ExtensionBuilder builder) {
    builder.observer(PactsRetriever.class)
        .observer(InteractionRunner.class)
        .observer(PactProviderConfigurator.class)
        .observer(HttpTargetCreator.class)
        .service(ResourceProvider.class, HttpTargetResourceProvider.class);
}
 
开发者ID:arquillian,项目名称:arquillian-algeron,代码行数:9,代码来源:PactProviderExtension.java

示例8: register

import org.jboss.arquillian.test.spi.enricher.resource.ResourceProvider; //导入依赖的package包/类
@Override
public void register(ExtensionBuilder builder) {

    builder.observer(AlgeronProviderConfigurator.class);

    if (LoadableExtension.Validate.classExists(
        "org.jboss.arquillian.container.test.spi.client.deployment.AuxiliaryArchiveAppender")) {
        builder.observer(DeploymentEnabler.class);
        builder.override(ResourceProvider.class, URLResourceProvider.class, EnvironmentUrlResourceProvider.class);
    }
}
 
开发者ID:arquillian,项目名称:arquillian-algeron,代码行数:12,代码来源:AlgeronProviderExtension.java

示例9: register

import org.jboss.arquillian.test.spi.enricher.resource.ResourceProvider; //导入依赖的package包/类
@Override
public void register(ExtensionBuilder builder) {
    builder.service(Protocol.class, DaemonProtocol.class)
            .service(AuxiliaryArchiveAppender.class, WildFlySwarmDeploymentAppender.class)
            .service(DeployableContainer.class, WildFlySwarmContainer.class)
            .service(DeploymentScenarioGenerator.class, DefaultDeploymentScenarioGenerator.class)
            .override(ResourceProvider.class, URLResourceProvider.class, SwarmURLResourceProvider.class)
            .override(ResourceProvider.class, URIResourceProvider.class, SwarmURIResourceProvider.class)
            .observer(WildFlySwarmObserver.class);
}
 
开发者ID:wildfly-swarm,项目名称:wildfly-swarm,代码行数:11,代码来源:WildFlySwarmExtension.java

示例10: register

import org.jboss.arquillian.test.spi.enricher.resource.ResourceProvider; //导入依赖的package包/类
@Override
public void register(ExtensionBuilder builder) {
    builder.override(ResourceProvider.class, ContainerURLResourceProvider.class, SwarmURLResourceProvider.class)
            .override(ResourceProvider.class, ContainerURIResourceProvider.class, SwarmURIResourceProvider.class)
            .service(ResourceProvider.class, ServiceRegistryResourceProvider.class)
            .service(CommandService.class, WildFlySwarmCommandService.class);
}
 
开发者ID:wildfly-swarm,项目名称:wildfly-swarm,代码行数:8,代码来源:WildFlySwarmRemoteExtension.java

示例11: register

import org.jboss.arquillian.test.spi.enricher.resource.ResourceProvider; //导入依赖的package包/类
public void register(ExtensionBuilder builder) {
    builder.observer(CECubeInitializer.class)
           .observer(CEEnvironmentProcessor.class);

    builder.service(ResourceProvider.class, OpenShiftHandleResourceProvider.class);
    builder.service(ResourceProvider.class, LocalConfigurationResourceProvider.class);
    builder.service(AuxiliaryArchiveAppender.class, UtilsArchiveAppender.class);
    builder.service(DeploymentScenarioGenerator.class, ExternalDeploymentScenarioGenerator.class);
}
 
开发者ID:jboss-openshift,项目名称:ce-arq,代码行数:10,代码来源:CECubeOpenShiftExtension.java

示例12: register

import org.jboss.arquillian.test.spi.enricher.resource.ResourceProvider; //导入依赖的package包/类
@Override
public void register(ExtensionBuilder builder) {
    builder.observer(QNetworkChaosToxicCreator.class)
        .observer(NetworkChaosConfigurator.class)
        .observer(ToxiProxyAfterTestCleaner.class)
        .service(ProxyManager.class, ToxicProxyHandler.class)
        .service(ResourceProvider.class, QNetworkChaosResourceProvider.class);
}
 
开发者ID:arquillian,项目名称:arquillian-cube-q,代码行数:9,代码来源:QNetworkChaosToxicExtension.java

示例13: register

import org.jboss.arquillian.test.spi.enricher.resource.ResourceProvider; //导入依赖的package包/类
@Override
public void register(ExtensionBuilder extensionBuilder) {
    extensionBuilder
        .service(StandaloneManager.class, PumbaStandaloneContainerHandler.class)
        .service(ResourceProvider.class, QContainerChaosPumbaResourceProvider.class)
        .observer(QContainerChaosPumbaCreator.class)
        .observer(QContainerChaosPumbaStopper.class);
}
 
开发者ID:arquillian,项目名称:arquillian-cube-q,代码行数:9,代码来源:QContainerChaosPumbaExtension.java

示例14: register

import org.jboss.arquillian.test.spi.enricher.resource.ResourceProvider; //导入依赖的package包/类
@Override
public void register(ExtensionBuilder builder) {
    builder.service(Protocol.class, DaemonProtocol.class)
            .service(AuxiliaryArchiveAppender.class, WildFlySwarmDeploymentAppender.class)
            .service(DeployableContainer.class, WildFlySwarmContainer.class)
            .override(ResourceProvider.class, URLResourceProvider.class, SwarmURLResourceProvider.class)
            .override(ResourceProvider.class, URIResourceProvider.class, SwarmURIResourceProvider.class)
            .observer(WildFlySwarmObserver.class);
}
 
开发者ID:wildfly-swarm-archive,项目名称:ARCHIVE-wildfly-swarm,代码行数:10,代码来源:WildFlySwarmExtension.java

示例15: register

import org.jboss.arquillian.test.spi.enricher.resource.ResourceProvider; //导入依赖的package包/类
@Override
public void register(ExtensionBuilder builder) {
    builder.observer(RedmineTestExecutionDecider.class);
    builder.observer(RedmineGovernorConfigurator.class);

    builder.service(TestExecutionDecider.class, RedmineTestExecutionDecider.class);
    builder.service(ResourceProvider.class, RedmineClientProvider.class);

    //Only if recorder-reporter is in classpath we should provide reporting capabilities.
    if (Validate.classExists("org.arquillian.recorder.reporter.ReporterExtension")) {
        builder.observer(RedmineGovernorRecorder.class);
    }
}
 
开发者ID:arquillian,项目名称:arquillian-governor,代码行数:14,代码来源:RedmineGovernorExtension.java


注:本文中的org.jboss.arquillian.test.spi.enricher.resource.ResourceProvider类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。