com.google.sitebricks
Class SitebricksModule

java.lang.Object
  extended by com.google.inject.AbstractModule
      extended by com.google.sitebricks.SitebricksModule
All Implemented Interfaces:
com.google.inject.Module, PageBinder
Direct Known Subclasses:
ConnegModule

public class SitebricksModule
extends com.google.inject.AbstractModule
implements PageBinder

Author:
dhanji@gmail.com (Dhanji R. Prasanna)

Nested Class Summary
 
Nested classes/interfaces inherited from interface com.google.sitebricks.PageBinder
PageBinder.ActionBinder, PageBinder.EmbedAsBinder, PageBinder.LocalizationBinder, PageBinder.NegotiateWithBinder, PageBinder.PerformBinder, PageBinder.ShowBinder
 
Constructor Summary
SitebricksModule()
           
 
Method Summary
 PageBinder.ShowBinder at(String uri)
           
 void bindMethod(String method, Class<? extends Annotation> annotation)
           
protected  void configure()
           
protected  void configureSitebricks()
           
 void converter(Class<? extends Converter<?,?>> clazz)
           
 void converter(Converter<?,?> converter)
           
 PageBinder.EmbedAsBinder embed(Class<?> clazz)
           
protected  void enableServletSupport(boolean bindServlets)
           
 PageBinder.LocalizationBinder localize(Class<?> iface)
           
 PageBinder.NegotiateWithBinder negotiate(String header)
           
protected  void scan(Package pack)
           
protected  SitebricksServletModule servletModule()
          Optionally supply Servlet and/or Filter implementations to Guice Servlet.
 
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

SitebricksModule

public SitebricksModule()
Method Detail

enableServletSupport

protected void enableServletSupport(boolean bindServlets)

configure

protected final void configure()
Specified by:
configure in class com.google.inject.AbstractModule

servletModule

protected SitebricksServletModule servletModule()
Optionally supply Servlet and/or Filter implementations to Guice Servlet. See SitebricksServletModule for usage examples.

Returns:
An instance of SitebricksServletModule. Implementing classes must return a non-null value.
See Also:
SitebricksServletModule

configureSitebricks

protected void configureSitebricks()

at

public final PageBinder.ShowBinder at(String uri)
Specified by:
at in interface PageBinder

embed

public final PageBinder.EmbedAsBinder embed(Class<?> clazz)
Specified by:
embed in interface PageBinder

bindMethod

public final void bindMethod(String method,
                             Class<? extends Annotation> annotation)
Specified by:
bindMethod in interface PageBinder

negotiate

public PageBinder.NegotiateWithBinder negotiate(String header)
Specified by:
negotiate in interface PageBinder

localize

public PageBinder.LocalizationBinder localize(Class<?> iface)
Specified by:
localize in interface PageBinder

scan

protected final void scan(Package pack)

converter

public final void converter(Converter<?,?> converter)

converter

public final void converter(Class<? extends Converter<?,?>> clazz)


Copyright © 2014. All rights reserved.