All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.wildfly.swarm.arquillian.adapter.resources.ServiceRegistryResourceProvider Maven / Gradle / Ivy

There is a newer version: 2.7.0.Final
Show newest version
package org.wildfly.swarm.arquillian.adapter.resources;

import java.lang.annotation.Annotation;

import org.jboss.arquillian.container.test.impl.enricher.resource.OperatesOnDeploymentAwareProvider;
import org.jboss.arquillian.test.api.ArquillianResource;
import org.jboss.msc.service.ServiceRegistry;
import org.wildfly.swarm.arquillian.adapter.ServiceRegistryServiceActivator;

/**
 * @author Bob McWhirter
 */
public class ServiceRegistryResourceProvider extends OperatesOnDeploymentAwareProvider {


    @Override
    public Object doLookup(ArquillianResource resource, Annotation... qualifiers) {
        return ServiceRegistryServiceActivator.INSTANCE;
    }

    @Override
    public boolean canProvide(Class type) {
        return ServiceRegistry.class.isAssignableFrom(type);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy