|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.inject.AbstractModule
org.loom.guice.LoomModule
public class LoomModule
Configures Loom using Guice. Extend this class to override the default config.
Constructor Summary | |
---|---|
LoomModule(javax.servlet.ServletContext servletContext)
|
Method Summary | |
---|---|
protected void |
configure()
|
protected void |
initActionMappingRepository()
|
protected void |
initAnnotationProcessors()
|
protected void |
initConverterFactory()
|
protected void |
initDefaultCompiler(java.lang.String name,
WebResourceType type)
|
protected void |
initExceptionHandler()
|
protected void |
initExpressionLanguageProxy()
|
protected void |
initFileParameterFactory()
|
protected void |
initFlashContextFactory()
|
protected void |
initLocaleResolver()
|
protected void |
initLookup()
|
protected MessagesRepositoryFactory |
initMessagesRepositoryFactory()
Initializes the MessagesRepositoryFactory instance |
protected void |
initNodeFactory()
|
protected org.codehaus.jackson.map.ObjectMapper |
initObjectMapper()
|
protected void |
initResolutionFactory()
|
protected org.springframework.core.io.ResourceLoader |
initResourceLoader()
|
protected void |
initServletContext()
|
protected void |
initWebResourceBundleFactory()
|
LoomModule |
withActionClasses(java.lang.Iterable<java.lang.Class<? extends Action>> actionClasses)
Registers the action classes into the ActionMappingRepository |
LoomModule |
withDefaultLocale(java.util.Locale defaultLocale)
Sets the default Locale to apply to requests if the user-selected locale is not supported by the application |
LoomModule |
withDevelopment(boolean development)
Sets a development value. |
LoomModule |
withMessagesLocations(java.lang.String... messagesLocations)
Sets the location of i18n messages. |
Methods inherited from class com.google.inject.AbstractModule |
---|
addError, addError, addError, bind, bind, bind, bindConstant, binder, bindInterceptor, bindListener, bindScope, configure, convertToTypes, currentStage, getMembersInjector, getMembersInjector, getProvider, getProvider, install, requestInjection, requestStaticInjection, requireBinding, requireBinding |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LoomModule(javax.servlet.ServletContext servletContext)
Method Detail |
---|
public LoomModule withDevelopment(boolean development)
public LoomModule withDefaultLocale(java.util.Locale defaultLocale)
defaultLocale
- the default locale to apply. If unspecified, Locale.getDefault() will be used
public LoomModule withMessagesLocations(java.lang.String... messagesLocations)
messagesLocations
- the locations of i18n messages, without the locale or ".properties" parts. Defaults to "classpath:resources/loom-messages", "WEB-INF/classes/resources/messages"
public LoomModule withActionClasses(java.lang.Iterable<java.lang.Class<? extends Action>> actionClasses)
actionClasses
- the action classes to use
protected void configure()
configure
in class com.google.inject.AbstractModule
protected void initServletContext()
protected org.springframework.core.io.ResourceLoader initResourceLoader()
protected void initActionMappingRepository()
protected void initConverterFactory()
protected void initExpressionLanguageProxy()
protected void initExceptionHandler()
protected void initFileParameterFactory()
protected void initResolutionFactory()
protected void initFlashContextFactory()
protected void initLocaleResolver()
protected MessagesRepositoryFactory initMessagesRepositoryFactory()
protected void initNodeFactory()
protected org.codehaus.jackson.map.ObjectMapper initObjectMapper()
protected void initWebResourceBundleFactory()
protected void initDefaultCompiler(java.lang.String name, WebResourceType type)
protected void initLookup()
protected void initAnnotationProcessors()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |