Method Summary |
|
protected void | bindAnnotatedClasses(Class>... classes) Call this method in
org.directwebremoting.guice.AbstractDwrModule.configure configure to specify classes that DWR should scan for annotations. |
protected LinkedBindingBuilder<Converter> | bindConversion(String match) Creates a binding for a conversion for types with names matching
match . |
protected LinkedBindingBuilder<Converter> | bindConversion(Class> type) Creates a binding for a conversion for
type . |
protected void | bindConversion(Class<T> type, Class<? extends T> impl) Creates a binding for a conversion for
type using an existing
conversion for
impl , which must be assignable to
type . |
protected void | bindDwrScopes() Configure DWR scopes and bindings for servlet-related types;
incompatible with Guice's ServletModule because their
bindings for request, response, and session conflict. |
protected void | bindDwrScopes(boolean bindPotentiallyConflictingTypes) Configure DWR scopes and bindings for servlet-related types,
specifying whether to include bindings that conflict with those
provided by Guice's ServletModule. |
protected LinkedBindingBuilder<AjaxFilter> | bindFilter(String scriptName) Creates a binding for an Ajax filter for the script named
scriptName . |
protected LinkedBindingBuilder<AjaxFilter> | bindGlobalFilter() Creates a binding for a global Ajax filter. |
protected ConstantBindingBuilder | bindParameter(ParamName paramName) Call this method in
org.directwebremoting.guice.AbstractDwrModule.configure configure to create a binding for a DWR parameter. |
protected LinkedBindingBuilder<T> | bindRemoted(Class<T> type) Creates a binding to
type that is used as the target of a
remote method call with the class's unqualified name as the script name.
Note: if you are scoping the result, don't rely on implicit binding.
Instead, link the type to itself explicitly. |
protected LinkedBindingBuilder<T> | bindRemotedAs(String scriptName, Class<T> type) Creates a binding to a type that is used as the target of a
remote method call with the given
scriptName .
Note: if you are scoping the result, don't rely on implicit binding.
Instead, link the type to itself explicitly. |
abstract protected void | configure() Implement this method to configure Guice bindings for a DWR-based
web application. |