org.jboss.resteasy.reactive.server.jaxrs.ResourceContextImpl Maven / Gradle / Ivy
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