public class SpringProvider extends java.lang.Object implements ContainerProvider
| Constructor and Description | 
|---|
SpringProvider()  | 
| Modifier and Type | Method and Description | 
|---|---|
SpringBasedContainer | 
getContainer()  | 
protected org.springframework.web.context.ConfigurableWebApplicationContext | 
getParentApplicationContext(javax.servlet.ServletContext context)
You can override this method for providing your own Spring
 ApplicationContext 
 | 
<T> T | 
provideForRequest(RequestInfo request,
                 Execution<T> execution)
Provides request scope support for Spring IoC Container when
 org.springframework.web.context.request.RequestContextListener has not
 been called. 
 | 
protected void | 
registerCustomComponents(ComponentRegistry registry)
you can override this method for registering custom components, or use
 optional vraptor components, like hibernate session and session factory
 creators:
 registry.register(SessionCreator.class, SessionCreator.class);
 registry.register(SessionFactoryCreator.class,
 SessionFactoryCreator.class); 
 | 
void | 
start(javax.servlet.ServletContext context)
You can override this method to start some components, remember to call super before. 
 | 
void | 
stop()  | 
public <T> T provideForRequest(RequestInfo request, Execution<T> execution)
provideForRequest in interface ContainerProviderpublic SpringBasedContainer getContainer()
getContainer in interface ContainerProviderpublic void stop()
stop in interface ContainerProviderpublic void start(javax.servlet.ServletContext context)
start in interface ContainerProviderprotected void registerCustomComponents(ComponentRegistry registry)
registry - protected org.springframework.web.context.ConfigurableWebApplicationContext getParentApplicationContext(javax.servlet.ServletContext context)
Copyright © 2013 Caelum. All Rights Reserved.