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

org.jboss.resteasy.reactive.server.jaxrs.ResourceContextImpl Maven / Gradle / Ivy

There is a newer version: 3.17.5
Show newest version
package org.jboss.resteasy.reactive.server.jaxrs;

import jakarta.enterprise.inject.spi.CDI;
import jakarta.ws.rs.container.ResourceContext;

public class ResourceContextImpl implements ResourceContext {
    public static ResourceContextImpl INSTANCE = new ResourceContextImpl();

    @Override
    public  T getResource(Class resourceClass) {
        return CDI.current().select(resourceClass).get();
    }

    @Override
    public  T initResource(T resource) {
        return resource;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy