|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.codehaus.groovy.grails.commons.spring.GrailsRuntimeConfigurator
public class GrailsRuntimeConfigurator extends java.lang.Object
Handles the runtime configuration of the Grails ApplicationContext.
Field Summary | |
---|---|
static java.lang.String |
BEAN_ID
|
static java.lang.String |
CLASS_EDITOR_BEAN
|
static java.lang.String |
CLASS_LOADER_BEAN
|
static java.lang.String |
CUSTOM_EDITORS_BEAN
|
static java.lang.String |
DATA_SOURCE_BEAN
|
static java.lang.String |
DIALECT_DETECTOR_BEAN
|
static java.lang.String |
EXCEPTION_HANDLER_BEAN
|
static java.lang.String |
GRAILS_URL_MAPPINGS
|
static java.lang.String |
HIBERNATE_PROPERTIES_BEAN
|
static java.lang.String |
MESSAGE_SOURCE_BEAN
|
static java.lang.String |
MULTIPART_RESOLVER_BEAN
|
static java.lang.String |
OPEN_SESSION_IN_VIEW_INTERCEPTOR_BEAN
|
static java.lang.String |
SESSION_FACTORY_BEAN
|
static java.lang.String |
SPRING_RESOURCES_CLASS
|
static java.lang.String |
SPRING_RESOURCES_GROOVY
|
static java.lang.String |
SPRING_RESOURCES_XML
|
static java.lang.String |
TRANSACTION_MANAGER_BEAN
|
Constructor Summary | |
GrailsRuntimeConfigurator(GrailsApplication application)
|
|
GrailsRuntimeConfigurator(GrailsApplication application, org.springframework.context.ApplicationContext parent)
|
Method Summary | |
---|---|
org.springframework.web.context.WebApplicationContext
|
configure()
GrailsPlugin.groovy", application); } PluginManagerHolder.setPluginManager(pluginManager); } |
org.springframework.web.context.WebApplicationContext
|
configure(javax.servlet.ServletContext context)
Configures the Grails application context at runtime |
org.springframework.web.context.WebApplicationContext
|
configure(javax.servlet.ServletContext context, boolean loadExternalBeans)
|
org.springframework.web.context.WebApplicationContext
|
configureDomainOnly()
|
protected WebRuntimeSpringConfiguration
|
createWebRuntimeSpringConfiguration(GrailsApplication app, org.springframework.context.ApplicationContext parentCtx, java.lang.ClassLoader classLoader)
|
GrailsPluginManager
|
getPluginManager()
|
static void
|
loadExternalSpringConfig(RuntimeSpringConfiguration config, GrailsApplication application)
Loads any external Spring configuration into the given RuntimeSpringConfiguration object. |
static void
|
loadSpringGroovyResources(RuntimeSpringConfiguration config, GrailsApplication application)
|
static void
|
loadSpringGroovyResourcesIntoContext(RuntimeSpringConfiguration config, GrailsApplication application, org.springframework.context.support.GenericApplicationContext context)
|
void
|
reconfigure(GrailsApplicationContext current, javax.servlet.ServletContext servletContext, boolean loadExternalBeans)
|
static BeanBuilder
|
reloadSpringResourcesConfig(RuntimeSpringConfiguration config, GrailsApplication application, java.lang.Class groovySpringResourcesClass)
|
static void
|
reset()
Resets the GrailsRumtimeConfigurator. |
void
|
setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
|
void
|
setLoadExternalPersistenceConfig(boolean b)
|
void
|
setPluginManager(GrailsPluginManager manager)
|
Methods inherited from class java.lang.Object | |
---|---|
java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Field Detail |
---|
public static final java.lang.String BEAN_ID
public static final java.lang.String CLASS_EDITOR_BEAN
public static final java.lang.String CLASS_LOADER_BEAN
public static final java.lang.String CUSTOM_EDITORS_BEAN
public static final java.lang.String DATA_SOURCE_BEAN
public static final java.lang.String DIALECT_DETECTOR_BEAN
public static final java.lang.String EXCEPTION_HANDLER_BEAN
public static final java.lang.String GRAILS_URL_MAPPINGS
public static final java.lang.String HIBERNATE_PROPERTIES_BEAN
public static final java.lang.String MESSAGE_SOURCE_BEAN
public static final java.lang.String MULTIPART_RESOLVER_BEAN
public static final java.lang.String OPEN_SESSION_IN_VIEW_INTERCEPTOR_BEAN
public static final java.lang.String SESSION_FACTORY_BEAN
public static final java.lang.String SPRING_RESOURCES_CLASS
public static final java.lang.String SPRING_RESOURCES_GROOVY
public static final java.lang.String SPRING_RESOURCES_XML
public static final java.lang.String TRANSACTION_MANAGER_BEAN
Constructor Detail |
---|
public GrailsRuntimeConfigurator(GrailsApplication application)
public GrailsRuntimeConfigurator(GrailsApplication application, org.springframework.context.ApplicationContext parent)
Method Detail |
---|
public org.springframework.web.context.WebApplicationContext configure()
public org.springframework.web.context.WebApplicationContext configure(javax.servlet.ServletContext context)
context
- A ServletContext instance
public org.springframework.web.context.WebApplicationContext configure(javax.servlet.ServletContext context, boolean loadExternalBeans)
public org.springframework.web.context.WebApplicationContext configureDomainOnly()
protected WebRuntimeSpringConfiguration createWebRuntimeSpringConfiguration(@SuppressWarnings("unused") GrailsApplication app, org.springframework.context.ApplicationContext parentCtx, java.lang.ClassLoader classLoader)
public GrailsPluginManager getPluginManager()
public static void loadExternalSpringConfig(RuntimeSpringConfiguration config, GrailsApplication application)
config
- The config instance
public static void loadSpringGroovyResources(RuntimeSpringConfiguration config, GrailsApplication application)
public static void loadSpringGroovyResourcesIntoContext(RuntimeSpringConfiguration config, GrailsApplication application, org.springframework.context.support.GenericApplicationContext context)
public void reconfigure(GrailsApplicationContext current, @SuppressWarnings("unused") javax.servlet.ServletContext servletContext, boolean loadExternalBeans)
public static BeanBuilder reloadSpringResourcesConfig(RuntimeSpringConfiguration config, GrailsApplication application, java.lang.Class groovySpringResourcesClass)
public static void reset()
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
public void setLoadExternalPersistenceConfig(@SuppressWarnings("unused") boolean b)
public void setPluginManager(GrailsPluginManager manager)
Groovy Documentation