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

org.arquillian.cube.kubernetes.impl.enricher.SessionResourceProvider Maven / Gradle / Ivy

The newest version!
package org.arquillian.cube.kubernetes.impl.enricher;

import java.lang.annotation.Annotation;
import org.arquillian.cube.kubernetes.api.Session;
import org.jboss.arquillian.core.api.Instance;
import org.jboss.arquillian.core.api.annotation.Inject;
import org.jboss.arquillian.test.api.ArquillianResource;

public class SessionResourceProvider extends AbstractKubernetesResourceProvider {

    @Inject
    private Instance sessionInstance;

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

    @Override
    public Object lookup(ArquillianResource arquillianResource, Annotation... annotations) {
        return getSession();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy