Java Doc for AbstractDwrModule.java in  » Ajax » dwr » org » directwebremoting » guice » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Ajax » dwr » org.directwebremoting.guice 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.directwebremoting.guice.AbstractDwrModule

All known Subclasses:   org.directwebremoting.guice.DwrGuiceServletContextListener,
AbstractDwrModule
abstract public class AbstractDwrModule extends AbstractModule (Code)
An extension of AbstractModule that adds DWR configuration methods, in conjunction with DwrGuiceServlet .
author:
   Tim Peierls [tim at peierls dot net]




Method Summary
protected  voidbindAnnotatedClasses(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  voidbindConversion(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  voidbindDwrScopes()
     Configure DWR scopes and bindings for servlet-related types; incompatible with Guice's ServletModule because their bindings for request, response, and session conflict.
protected  voidbindDwrScopes(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  ConstantBindingBuilderbindParameter(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  voidconfigure()
     Implement this method to configure Guice bindings for a DWR-based web application.



Method Detail
bindAnnotatedClasses
protected void bindAnnotatedClasses(Class... classes)(Code)
Call this method in org.directwebremoting.guice.AbstractDwrModule.configure configure to specify classes that DWR should scan for annotations.
Parameters:
  classes - the classes to be scanned for DWR-specific annotations



bindConversion
protected LinkedBindingBuilder<Converter> bindConversion(String match)(Code)
Creates a binding for a conversion for types with names matching match .
Parameters:
  match - the string describing which types to convert



bindConversion
protected LinkedBindingBuilder<Converter> bindConversion(Class type)(Code)
Creates a binding for a conversion for type .
Parameters:
  type - the type to be converted



bindConversion
protected void bindConversion(Class<T> type, Class<? extends T> impl)(Code)
Creates a binding for a conversion for type using an existing conversion for impl , which must be assignable to type . The check for an existing conversion happens at run-time.
Parameters:
  type - the type to be converted



bindDwrScopes
protected void bindDwrScopes()(Code)
Configure DWR scopes and bindings for servlet-related types; incompatible with Guice's ServletModule because their bindings for request, response, and session conflict.



bindDwrScopes
protected void bindDwrScopes(boolean bindPotentiallyConflictingTypes)(Code)
Configure DWR scopes and bindings for servlet-related types, specifying whether to include bindings that conflict with those provided by Guice's ServletModule.
Parameters:
  bindPotentiallyConflictingTypes - whether to bind request, response,and session types (risking conflict with Guice)



bindFilter
protected LinkedBindingBuilder<AjaxFilter> bindFilter(String scriptName)(Code)
Creates a binding for an Ajax filter for the script named scriptName .
Parameters:
  scriptName - the script to filter



bindGlobalFilter
protected LinkedBindingBuilder<AjaxFilter> bindGlobalFilter()(Code)
Creates a binding for a global Ajax filter.



bindParameter
protected ConstantBindingBuilder bindParameter(ParamName paramName)(Code)
Call this method in org.directwebremoting.guice.AbstractDwrModule.configure configure to create a binding for a DWR parameter.
Parameters:
  paramName - a parameter name supported by DWR



bindRemoted
protected LinkedBindingBuilder<T> bindRemoted(Class<T> type)(Code)
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. For example,

 bindRemoted(ConcreteService.class)
 .to(ConcreteService.class) // this line is required
 .in(DwrScopes.SESSION);
 
This could be considered a bug.
Parameters:
  type - the type to bind as a target for remote method calls



bindRemotedAs
protected LinkedBindingBuilder<T> bindRemotedAs(String scriptName, Class<T> type)(Code)
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. For example,

 bindRemotedAs("Mixer", ConcreteService.class)
 .to(ConcreteService.class) // this line is required
 .in(DwrScopes.SESSION);
 
This could be considered a bug.
Parameters:
  type - the type to bind as a target for remote method calls
Parameters:
  scriptName - the name by which the target type will be known to script callers



configure
abstract protected void configure()(Code)
Implement this method to configure Guice bindings for a DWR-based web application.



www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.