org.jboss.resteasy.plugins.spring
public class SpringContextLoaderSupport extends Object
ContextLoader
. This is useful
if you have your own SpringContextLoaderListener and dont' want to
return RESTEasy's SpringContextLoader
.
Usage:
public class MyCustomSpringContextLoader extends ContextLoader { private SpringContextLoaderSupport springContextLoaderSupport = new SpringContextLoaderSupport(); protected void customizeContext( ServletContext servletContext, ConfigurableWebApplicationContext configurableWebApplicationContext) { super.customizeContext(servletContext, configurableWebApplicationContext); // Your custom code this.springContextLoaderSupport.customizeContext(servletContext.configurableWebApplicationContext); // Your custom code } }
Constructor and Description |
---|
SpringContextLoaderSupport() |
Modifier and Type | Method and Description |
---|---|
void |
customizeContext(javax.servlet.ServletContext servletContext,
org.springframework.web.context.ConfigurableWebApplicationContext configurableWebApplicationContext) |
Copyright © 2014. All Rights Reserved.