org.directwebremoting.guice |
This package provides support for
Guice
dependency injection in DWR-based web applications.
This documentation assumes you already understand Guice concepts.
To use this support minimally,
|
Java Source File Name | Type | Comment |
AbstractContextCloseHandler.java | Class | A partially implemented handler for objects contained in contexts that
are closing. |
AbstractContextScope.java | Class | Partial implementation of
ContextScope . |
AbstractDwrModule.java | Class | An extension of
AbstractModule that adds DWR configuration methods,
in conjunction with
DwrGuiceServlet . |
AbstractMapContextScope.java | Class | A specialization of
AbstractContextScope using a concurrent map
to hold registered instance providers. |
AbstractSimpleContextScope.java | Class | A specialization of
AbstractContextScope for the case when
the context identifier itself can serve as a string-keyed instance registry
using synchronization on the context to provide atomic put-if-absent
and remove-specific-value behavior. |
ApplicationScoped.java | Annotation | Marks classes for which there should be one instance per web application
(i.e., per servlet context) and these instances should be created eagerly
at servlet
init() and closed (when they implement
Closeable )
at servlet
destroy() . |
BindUtil.java | Class | Binding utilities for creating ad hoc providers. |
ContextCloseHandler.java | Interface | Called for each instance in a context when the context is closed. |
ContextRegistry.java | Interface | Manages instances for a context. |
ContextScope.java | Interface | A scope that looks up providers in a current context, using itself as a
provider for the context. |
Converting.java | Annotation | Marks classes to be converted by DWR. |
ConvertingImpl.java | Class | |
DwrGuiceServlet.java | Class | An extension of the basic
org.directwebremoting.servlet.DwrServlet DwrServlet that configures itself for dependency injection with Guice. |
DwrGuiceServletContextListener.java | Class | Register a concrete subclass of this as a servlet context listener to
configure an
Injector and stash it in the
ServletContext . |
DwrGuiceServletModule.java | Class | Configures DWR scopes and creates bindings for commonly
used objects related to those scopes: request, response,
script session, session, servlet context, and web context. |
DwrGuiceUtil.java | Class | Utilities for making Injector and ServletContext instances available. |
DwrScopes.java | Class | Scopes available to DWR applications. |
ExceptionLoggingCloseableHandler.java | Class | |
Filtering.java | Annotation | Marks classes to be Ajax-filtered by DWR. |
FilteringImpl.java | Class | |
FutureTaskProvider.java | Class | A provider implementation that uses the FutureTask machinery. |
GlobalApplicationScoped.java | Annotation | Marks classes for which there should be one instance per web application
(i.e., per servlet context). |
GuiceCreator.java | Class | A creator that uses Guice dependency injection to create remoted objects. |
InitParam.java | Annotation | Marks classes to be Ajax-filtered by DWR. |
InitParamImpl.java | Class | |
InstanceMap.java | Interface | A specialization of ConcurrentMap with keys of type
Key and
values of type
InstanceProvider . |
InstanceMapImpl.java | Class | Implementation of
InstanceMap in terms of
ConcurrentHashMap . |
InstanceProvider.java | Interface | Marker interface for
ContextRegistry implementations to recognize
registered instance providers. |
InternalAjaxFilter.java | Class | Specialized Ajax filter implementation that uses a Provider to
look up instances to delegate to. |
InternalAjaxFilterManager.java | Class | Extends an existing ajax filter manager with an injected list of ajax filters
specified at Guice bind-time. |
InternalConfigurator.java | Class | Delegates to an injected configurator. |
InternalConverter.java | Class | Specialized converter implementation that uses a Provider to
look up instances to delegate to. |
InternalConverterManager.java | Class | Extends an existing converter manager with an injected list of converters
specified at Guice bind-time. |
InternalCreator.java | Class | Specialized creator implementation that uses an injector to
look up its instances. |
InternalCreatorManager.java | Class | Extends an existing creator manager with an injected list of creators
specified at Guice bind-time. |
ModifiableServletConfig.java | Class | Wraps an existing ServletConfig, allowing changes to be made to the existing initParams. |
OutOfScopeException.java | Class | Thrown by Providers returned by
com.google.inject.Scope.scope scope(Key, Provider) when they cannot locate a resource needed to resolve a key. |
package-info.java | | |
ParamName.java | enum | Parameters used to configure DWR. |
Remoted.java | Annotation | Marks classes to be remoted by DWR. |
RemotedImpl.java | Class | |
RequestParameters.java | Annotation | Marks fields or parameters of type
Map that are to be injected with the parameter map of the current
HTTP request. |
RequestScoped.java | Annotation | Marks classes for which there should be one instance per HTTP request. |
ScriptSessionScoped.java | Annotation | Marks classes for which there should be one instance per script session. |
SessionScoped.java | Annotation | Marks classes for which there should be one instance per HTTP session. |