|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.codehaus.groovy.grails.commons.spring.GrailsRuntimeConfigurator
public class GrailsRuntimeConfigurator
A class that handles the runtime configuration of the Grails ApplicationContext
| Field Summary | |
|---|---|
static String |
BEAN_ID
|
static String |
CLASS_EDITOR_BEAN
|
static String |
CLASS_LOADER_BEAN
|
static String |
CUSTOM_EDITORS_BEAN
|
static String |
DATA_SOURCE_BEAN
|
static String |
DIALECT_DETECTOR_BEAN
|
static String |
EXCEPTION_HANDLER_BEAN
|
static String |
GRAILS_URL_MAPPINGS
|
static String |
HIBERNATE_PROPERTIES_BEAN
|
static String |
MESSAGE_SOURCE_BEAN
|
static String |
MULTIPART_RESOLVER_BEAN
|
static String |
OPEN_SESSION_IN_VIEW_INTERCEPTOR_BEAN
|
static String |
SESSION_FACTORY_BEAN
|
static String |
SPRING_RESOURCES_GROOVY
|
static String |
SPRING_RESOURCES_XML
|
static String |
TRANSACTION_MANAGER_BEAN
|
| Constructor Summary | |
|---|---|
GrailsRuntimeConfigurator(GrailsApplication application)
|
|
GrailsRuntimeConfigurator(GrailsApplication application,
ApplicationContext parent)
|
|
| Method Summary | |
|---|---|
WebApplicationContext |
configure()
Configures the Grails application context at runtime |
WebApplicationContext |
configure(ServletContext context)
Configures the Grails application context at runtime |
WebApplicationContext |
configure(ServletContext context,
boolean loadExternalBeans)
|
WebApplicationContext |
configureDomainOnly()
|
GrailsPluginManager |
getPluginManager()
|
void |
reconfigure(GrailsWebApplicationContext current,
ServletContext servletContext,
boolean loadExternalBeans)
|
void |
registerService(GrailsServiceClass grailsServiceClass,
GrailsWebApplicationContext context)
Registers a new service with the specified application context |
static void |
registerTagLibrary(GrailsTagLibClass tagLibClass,
GrailsWebApplicationContext context)
Registers a tag library with the specified grails application context |
void |
setApplicationContext(ApplicationContext applicationContext)
|
void |
setLoadExternalPersistenceConfig(boolean b)
|
void |
setPluginManager(GrailsPluginManager manager)
|
void |
updateDomainClass(GrailsDomainClass domainClass,
GrailsWebApplicationContext context)
Updates an existing domain class within the application context |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String BEAN_ID
public static final String GRAILS_URL_MAPPINGS
public static final String SPRING_RESOURCES_XML
public static final String SPRING_RESOURCES_GROOVY
public static final String OPEN_SESSION_IN_VIEW_INTERCEPTOR_BEAN
public static final String TRANSACTION_MANAGER_BEAN
public static final String HIBERNATE_PROPERTIES_BEAN
public static final String DIALECT_DETECTOR_BEAN
public static final String SESSION_FACTORY_BEAN
public static final String DATA_SOURCE_BEAN
public static final String MESSAGE_SOURCE_BEAN
public static final String MULTIPART_RESOLVER_BEAN
public static final String EXCEPTION_HANDLER_BEAN
public static final String CUSTOM_EDITORS_BEAN
public static final String CLASS_EDITOR_BEAN
public static final String CLASS_LOADER_BEAN
| Constructor Detail |
|---|
public GrailsRuntimeConfigurator(GrailsApplication application)
public GrailsRuntimeConfigurator(GrailsApplication application,
ApplicationContext parent)
| Method Detail |
|---|
public void registerService(GrailsServiceClass grailsServiceClass,
GrailsWebApplicationContext context)
grailsServiceClass - The service class to registercontext - The app context to register with
public static void registerTagLibrary(GrailsTagLibClass tagLibClass,
GrailsWebApplicationContext context)
tagLibClass - That tag library classcontext - The application context
public void updateDomainClass(GrailsDomainClass domainClass,
GrailsWebApplicationContext context)
domainClass - The domain class to updatecontext - The contextpublic WebApplicationContext configure()
public WebApplicationContext configure(ServletContext context)
context - A ServletContext instance
public WebApplicationContext configure(ServletContext context,
boolean loadExternalBeans)
public void reconfigure(GrailsWebApplicationContext current,
ServletContext servletContext,
boolean loadExternalBeans)
public WebApplicationContext configureDomainOnly()
public void setLoadExternalPersistenceConfig(boolean b)
public void setPluginManager(GrailsPluginManager manager)
public GrailsPluginManager getPluginManager()
public void setApplicationContext(ApplicationContext applicationContext)
throws BeansException
setApplicationContext in interface ApplicationContextAwareBeansException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||