org.codehaus.enunciate.modules.jersey.EnunciateSpringComponentProviderFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of enunciate-jersey-rt Show documentation
Show all versions of enunciate-jersey-rt Show documentation
The Enunciate Jersey runtime contains the libraries to support a Jersey-based REST project.
package org.codehaus.enunciate.modules.jersey;
import com.sun.jersey.api.core.ResourceConfig;
import com.sun.jersey.core.spi.component.ComponentContext;
import com.sun.jersey.core.spi.component.ComponentScope;
import com.sun.jersey.core.spi.component.ioc.IoCComponentProvider;
import com.sun.jersey.core.spi.component.ioc.IoCInstantiatedComponentProvider;
import com.sun.jersey.core.spi.component.ioc.IoCManagedComponentProvider;
import com.sun.jersey.core.spi.component.ioc.IoCProxiedComponentProvider;
import com.sun.jersey.spi.spring.container.SpringComponentProviderFactory;
import org.aopalliance.aop.Advice;
import org.springframework.aop.Advisor;
import org.springframework.aop.framework.Advised;
import org.springframework.aop.support.AopUtils;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.web.context.support.WebApplicationContextUtils;
import javax.annotation.Resource;
import javax.servlet.ServletContext;
import javax.ws.rs.Path;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
* An enunciate-aware spring component provider factory. This factory is intended to extend the {@link SpringComponentProviderFactory} in such a way so
* as to apply the enunciate global interceptors to any JAX-RS root resource.
*
* @author Ryan Heaton
*/
public class EnunciateSpringComponentProviderFactory extends SpringComponentProviderFactory {
private final Map resourceFactories = new HashMap();
private List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy