Java Doc for TapestryModule.java in  » Web-Framework » Tapestry » org » apache » tapestry » services » 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 » Web Framework » Tapestry » org.apache.tapestry.services 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.tapestry.services.TapestryModule

TapestryModule
final public class TapestryModule (Code)
The root module for Tapestry.



Constructor Summary
public  TapestryModule(PipelineBuilder pipelineBuilder, PropertyShadowBuilder shadowBuilder, RequestGlobals requestGlobals, ApplicationGlobals applicationGlobals, ChainBuilder chainBuilder, RequestPageCache requestPageCache, PageResponseRenderer pageResponseRenderer, Environment environment, StrategyBuilder strategyBuilder, ComponentInstantiatorSource componentInstantiatorSource, LinkFactory linkFactory, PropertyAccess propertyAccess, ClassFactory componentClassFactory)
    

Method Summary
public static  voidbind(ServiceBinder binder)
    
public static  Aliasbuild(Log log, String mode, AliasManager overridesManager, Collection<AliasContribution> configuration)
    
public  Contextbuild(ApplicationGlobals globals)
    
public  ValidationMessagesSourcebuild(Collection<String> configuration, UpdateListenerHub updateListenerHub, AssetFactory classpathAssetFactory)
     Builds the source of Messages containing validation messages.
public  PageRenderSupportbuild(EnvironmentalShadowBuilder builder)
     Builds a proxy to the current PageRenderSupport inside this thread's Environment .
public  ComponentClassTransformWorkerbuild(List<ComponentClassTransformWorker> configuration)
     Allows the exact steps in the component class transformation process to be defined.
public  DataTypeAnalyzerbuild(List<DataTypeAnalyzer> configuration)
    
public  InjectionProviderbuild(List<InjectionProvider> configuration)
     A chain of command for providing values for org.apache.tapestry.annotations.Inject -ed fields in component classes.
public  PageRenderInitializerbuild(List<PageRenderCommand> configuration)
     Controls setup and cleanup of the environment during page rendering (the generation of a markup stream response for the client web browser).
public  ApplicationInitializerbuild(Log log, List<ApplicationInitializerFilter> configuration)
     Initializes the application.
public  HttpServletRequestHandlerbuild(Log log, List<HttpServletRequestFilter> configuration, RequestHandler handler)
    
public  RequestHandlerbuild(Log log, List<RequestFilter> configuration, Dispatcher masterDispatcher)
    
public  ServletApplicationInitializerbuild(Log log, List<ServletApplicationInitializerFilter> configuration, ApplicationInitializer initializer)
    
public  ComponentEventResultProcessorbuild(Map<Class, ComponentEventResultProcessor> configuration)
    
public  ObjectRendererbuild(StrategyBuilder strategyBuilder, Map<Class, ObjectRenderer> configuration)
    
public static  ComponentMessagesSourcebuild(UpdateListenerHub updateListenerHub, AssetFactory contextAssetFactory, String appCatalog)
    
public  ValueEncoderSourcebuild(Map<Class, ValueEncoderFactory> configuration)
    
public static  AliasManagerbuildAliasOverrides(Log log, Collection<AliasContribution> configuration)
     A companion service to whose configuration contribution define spot overrides to specific services.
public  ComponentActionRequestHandlerbuildComponentActionRequestHandler(List<ComponentActionRequestFilter> configuration, Log log, ServiceResources resources)
    
public  ClassFactorybuildComponentClassFactory()
     Returns a ClassFactory that can be used to create extra classes around component classes.
public  ComponentClassResolverbuildComponentClassResolver(ServiceResources resources)
    
public  ComponentEventResultProcessorbuildComponentInstanceResultProcessor(Log log)
    
public  DataTypeAnalyzerbuildDefaultDataTypeAnalyzer(ServiceResources resources)
     The default data type analyzer is the final analyzer consulted and identifies the type entirely pased on the property type, working against its own configuration (mapping property type class to data type).
public  DispatcherbuildMasterDispatcher(List<Dispatcher> configuration)
     Ordered contributions to the MasterDispatcher service allow different URL matching strategies to occur.
public  MetaDataLocatorbuildMetaDataLocator(ServiceResources resources)
    
public  PageRenderRequestHandlerbuildPageRenderRequestHandler(List<PageRenderRequestFilter> configuration, Log log, ServiceResources resources)
    
public  PropertyConduitSourcebuildPropertyConduitSource()
    
public  RequestbuildRequest()
     Builds a shadow of the RequestGlobals.request property.
public  ResponsebuildResponse()
     Builds a shadow of the RequestGlobals.response property.
public  TranslatorDefaultSourcebuildTranslatorDefaultSource(ServiceResources resources)
    
public static  voidcontributeAlias(Configuration<AliasContribution> configuration, ObjectLocator locator, ClassFactory componentClassFactory, DataTypeAnalyzer dataTypeAnalyzer)
     A few of the built in services overlap in terms of service interface so we make contributions to the Alias service to disambiguate.
public  voidcontributeApplicationStatePersistenceStrategySource(MappedConfiguration<String, ApplicationStatePersistenceStrategy> configuration, Request request)
     Contributes the default "session" strategy.
public  voidcontributeAssetSource(MappedConfiguration<String, AssetFactory> configuration, AssetFactory contextAssetFactory, AssetFactory classpathAssetFactory)
    
public static  voidcontributeBeanBlockSource(Configuration<BeanBlockContribution> configuration)
    
public static  voidcontributeBindingSource(MappedConfiguration<String, BindingFactory> configuration, AssetSource assetSource, BindingFactory propBindingFactory, FieldValidatorSource fieldValidatorSource, TranslatorSource translatorSource)
     Contributes the factory for serveral built-in binding prefixes ("asset", "literal", prop", "block", "component" "message", "validate", "translate").
public static  voidcontributeClasspathAssetAliasManager(MappedConfiguration<String, String> configuration, String scriptaculousPath)
    
public static  voidcontributeComponentClassResolver(Configuration<LibraryMapping> configuration)
    
public static  voidcontributeComponentClassTransformWorker(OrderedConfiguration<ComponentClassTransformWorker> configuration, ObjectLocator locator, ObjectProvider objectProvider, InjectionProvider injectionProvider, Environment environment, ComponentClassResolver resolver, RequestPageCache requestPageCache, AssetSource assetSource, SymbolSource symbolSource, BindingSource bindingsource, ApplicationStateManager applicationStateManager)
     Adds a number of standard component class transform workers:
  • Retain -- allows fields to retain their values between requests
  • Persist -- allows fields to store their their value persistently between requests
  • Parameter -- identifies parameters based on the org.apache.tapestry.annotations.Parameter annotation
  • Component -- identifies embedded components based on the org.apache.tapestry.annotations.Component annotation
  • Mixin -- adds a mixin as part of a component's implementation
  • Environment -- allows fields to contain values extracted from the Environment service
  • Inject -- used with the Inject annotation, when a value is supplied
  • InjectResources -- used with the Inject annotation, when no value is supplied
  • InjectPage -- adds code to allow access to other pages via the InjectPage field annotation
  • InjectBlock -- allows a block from the template to be injected into a field
  • SupportsInformalParameters -- checks for the annotation
  • Meta -- checks for meta data and adds it to the component model
  • ApplicationState -- converts fields that reference application state objects
  • UnclaimedField -- identifies unclaimed fields and resets them to null/0/false at the end of the request
  • RenderCommand -- ensures all components also implement RenderCommand
  • SetupRender, BeginRender, etc.
public  voidcontributeComponentEventResultProcessor(ComponentEventResultProcessor componentInstanceProcessor, ComponentClassResolver componentClassResolver, MappedConfiguration<Class, ComponentEventResultProcessor> configuration)
    
public static  voidcontributeDataTypeAnalyzer(OrderedConfiguration<DataTypeAnalyzer> configuration, DataTypeAnalyzer defaultDataTypeAnalyzer)
     Adds the TapestryModule.buildDefaultDataTypeAnalyzer(Map) DefaultDatatTypeAnalyzer to the configuration, ordered explicitly last.
public static  voidcontributeDefaultDataTypeAnalyzer(MappedConfiguration<Class, String> configuration)
    
public static  voidcontributeFieldValidatorSource(MappedConfiguration<String, Validator> configuration)
    
public static  voidcontributeInjectionProvider(OrderedConfiguration<InjectionProvider> configuration, SymbolSource symbolSource, AssetSource assetSource)
    
public  voidcontributeMasterDispatcher(OrderedConfiguration<Dispatcher> configuration, ClasspathAssetAliasManager aliasManager, ResourceCache resourceCache, ResourceStreamer streamer, PageRenderRequestHandler pageRenderRequestHandler, ComponentActionRequestHandler componentActionRequestHandler, ComponentClassResolver componentClassResolver, String startPageName)
    
public static  voidcontributeMasterObjectProvider(OrderedConfiguration<ObjectProvider> configuration, Alias alias, ObjectProvider assetObjectProvider)
    
public  voidcontributeMetaDataLocator(MappedConfiguration<String, String> configuration)
    
public  voidcontributeObjectRenderer(MappedConfiguration<Class, ObjectRenderer> configuration, ObjectRenderer locationRenderer, TypeCoercer typeCoercer)
     Contributes a default object renderer for type Object, plus specialized renderers for Request and Location .
public  voidcontributePageRenderInitializer(OrderedConfiguration<PageRenderCommand> configuration, ThreadLocale threadLocale, Asset stylesheetAsset, Asset fieldErrorIcon, ValidationMessagesSource validationMessagesSource, SymbolSource symbolSource, AssetSource assetSource)
    
public  voidcontributePersistentFieldManager(MappedConfiguration<String, PersistentFieldStrategy> configuration, Request request, PersistentFieldStrategy clientStrategy)
    
public static  voidcontributeRequestHandler(OrderedConfiguration<RequestFilter> configuration, Context context, RequestExceptionHandler exceptionHandler)
     Contributes filter "StaticFilesFilter" that identifies requests for static resources and terminates the pipeline by returning false.
public static  voidcontributeTranslatorDefaultSource(MappedConfiguration<Class, Translator> configuration)
    
public static  voidcontributeTranslatorSource(MappedConfiguration<String, Translator> configuration)
    
public static  voidcontributeTypeCoercer(Configuration<CoercionTuple> configuration)
    
public static  voidcontributeValidationConstraintGenerator(OrderedConfiguration<ValidationConstraintGenerator> configuration)
    
public  voidcontributeValidationMessagesSource(Configuration<String> configuration)
    
public static  voidcontributeValueEncoderSource(MappedConfiguration<Class, ValueEncoderFactory> configuration)
    


Constructor Detail
TapestryModule
public TapestryModule(PipelineBuilder pipelineBuilder, PropertyShadowBuilder shadowBuilder, RequestGlobals requestGlobals, ApplicationGlobals applicationGlobals, ChainBuilder chainBuilder, RequestPageCache requestPageCache, PageResponseRenderer pageResponseRenderer, Environment environment, StrategyBuilder strategyBuilder, ComponentInstantiatorSource componentInstantiatorSource, LinkFactory linkFactory, PropertyAccess propertyAccess, ClassFactory componentClassFactory)(Code)




Method Detail
bind
public static void bind(ServiceBinder binder)(Code)



build
public static Alias build(Log log, String mode, AliasManager overridesManager, Collection<AliasContribution> configuration)(Code)



build
public Context build(ApplicationGlobals globals)(Code)



build
public ValidationMessagesSource build(Collection<String> configuration, UpdateListenerHub updateListenerHub, AssetFactory classpathAssetFactory)(Code)
Builds the source of Messages containing validation messages. The contributions are paths to message bundles (resource paths within the classpath); the default contribution is "org/apache/tapestry/internal/ValidationMessages".



build
public PageRenderSupport build(EnvironmentalShadowBuilder builder)(Code)
Builds a proxy to the current PageRenderSupport inside this thread's Environment .



build
public ComponentClassTransformWorker build(List<ComponentClassTransformWorker> configuration)(Code)
Allows the exact steps in the component class transformation process to be defined.



build
public DataTypeAnalyzer build(List<DataTypeAnalyzer> configuration)(Code)



build
public InjectionProvider build(List<InjectionProvider> configuration)(Code)
A chain of command for providing values for org.apache.tapestry.annotations.Inject -ed fields in component classes. The service's configuration can be extended to allow for different automatic injections (based on some combination of field type and field name).



build
public PageRenderInitializer build(List<PageRenderCommand> configuration)(Code)
Controls setup and cleanup of the environment during page rendering (the generation of a markup stream response for the client web browser).



build
public ApplicationInitializer build(Log log, List<ApplicationInitializerFilter> configuration)(Code)
Initializes the application.



build
public HttpServletRequestHandler build(Log log, List<HttpServletRequestFilter> configuration, RequestHandler handler)(Code)



build
public RequestHandler build(Log log, List<RequestFilter> configuration, Dispatcher masterDispatcher)(Code)



build
public ServletApplicationInitializer build(Log log, List<ServletApplicationInitializerFilter> configuration, ApplicationInitializer initializer)(Code)



build
public ComponentEventResultProcessor build(Map<Class, ComponentEventResultProcessor> configuration)(Code)



build
public ObjectRenderer build(StrategyBuilder strategyBuilder, Map<Class, ObjectRenderer> configuration)(Code)



build
public static ComponentMessagesSource build(UpdateListenerHub updateListenerHub, AssetFactory contextAssetFactory, String appCatalog)(Code)



build
public ValueEncoderSource build(Map<Class, ValueEncoderFactory> configuration)(Code)



buildAliasOverrides
public static AliasManager buildAliasOverrides(Log log, Collection<AliasContribution> configuration)(Code)
A companion service to whose configuration contribution define spot overrides to specific services.



buildComponentActionRequestHandler
public ComponentActionRequestHandler buildComponentActionRequestHandler(List<ComponentActionRequestFilter> configuration, Log log, ServiceResources resources)(Code)



buildComponentClassFactory
public ClassFactory buildComponentClassFactory()(Code)
Returns a ClassFactory that can be used to create extra classes around component classes. This ClassFactory will be cleared whenever an underlying component class is discovered to have changed. Use of this class factory implies that your code will become aware of this (if necessary) to discard any cached object (alas, this currently involves dipping into the internals side to register for the correct notifications). Failure to properly clean up can result in really nasty PermGen space memory leaks.



buildComponentClassResolver
public ComponentClassResolver buildComponentClassResolver(ServiceResources resources)(Code)



buildComponentInstanceResultProcessor
public ComponentEventResultProcessor buildComponentInstanceResultProcessor(Log log)(Code)



buildDefaultDataTypeAnalyzer
public DataTypeAnalyzer buildDefaultDataTypeAnalyzer(ServiceResources resources)(Code)
The default data type analyzer is the final analyzer consulted and identifies the type entirely pased on the property type, working against its own configuration (mapping property type class to data type).



buildMasterDispatcher
public Dispatcher buildMasterDispatcher(List<Dispatcher> configuration)(Code)
Ordered contributions to the MasterDispatcher service allow different URL matching strategies to occur.



buildMetaDataLocator
public MetaDataLocator buildMetaDataLocator(ServiceResources resources)(Code)



buildPageRenderRequestHandler
public PageRenderRequestHandler buildPageRenderRequestHandler(List<PageRenderRequestFilter> configuration, Log log, ServiceResources resources)(Code)



buildPropertyConduitSource
public PropertyConduitSource buildPropertyConduitSource()(Code)



buildRequest
public Request buildRequest()(Code)
Builds a shadow of the RequestGlobals.request property. Note again that the shadow can be an ordinary singleton, even though RequestGlobals is perthread.



buildResponse
public Response buildResponse()(Code)
Builds a shadow of the RequestGlobals.response property. Note again that the shadow can be an ordinary singleton, even though RequestGlobals is perthread.



buildTranslatorDefaultSource
public TranslatorDefaultSource buildTranslatorDefaultSource(ServiceResources resources)(Code)



contributeAlias
public static void contributeAlias(Configuration<AliasContribution> configuration, ObjectLocator locator, ClassFactory componentClassFactory, DataTypeAnalyzer dataTypeAnalyzer)(Code)
A few of the built in services overlap in terms of service interface so we make contributions to the Alias service to disambiguate. This ensures that a bare parameter (without an InjectService annotation) will chose the correct value without being further qualified.
ComponentEventResultProcessor
the master ComponentEventResultProcessor service (rather than one of the other services that exist to handle a specific type of result)
ObjectRenderer
the master ObjectRenderer service (rather than the one of the other services that renders a specific type of object)
ClassFactory
the ComponentClassFactory (which will be recreated if the component class loader is recreated, on a change to a component class)
DataTypeAnalyzer
the DefaultDataTypeAnalyzer service



contributeApplicationStatePersistenceStrategySource
public void contributeApplicationStatePersistenceStrategySource(MappedConfiguration<String, ApplicationStatePersistenceStrategy> configuration, Request request)(Code)
Contributes the default "session" strategy.



contributeAssetSource
public void contributeAssetSource(MappedConfiguration<String, AssetFactory> configuration, AssetFactory contextAssetFactory, AssetFactory classpathAssetFactory)(Code)



contributeBeanBlockSource
public static void contributeBeanBlockSource(Configuration<BeanBlockContribution> configuration)(Code)



contributeBindingSource
public static void contributeBindingSource(MappedConfiguration<String, BindingFactory> configuration, AssetSource assetSource, BindingFactory propBindingFactory, FieldValidatorSource fieldValidatorSource, TranslatorSource translatorSource)(Code)
Contributes the factory for serveral built-in binding prefixes ("asset", "literal", prop", "block", "component" "message", "validate", "translate").



contributeClasspathAssetAliasManager
public static void contributeClasspathAssetAliasManager(MappedConfiguration<String, String> configuration, String scriptaculousPath)(Code)



contributeComponentClassResolver
public static void contributeComponentClassResolver(Configuration<LibraryMapping> configuration)(Code)



contributeComponentClassTransformWorker
public static void contributeComponentClassTransformWorker(OrderedConfiguration<ComponentClassTransformWorker> configuration, ObjectLocator locator, ObjectProvider objectProvider, InjectionProvider injectionProvider, Environment environment, ComponentClassResolver resolver, RequestPageCache requestPageCache, AssetSource assetSource, SymbolSource symbolSource, BindingSource bindingsource, ApplicationStateManager applicationStateManager)(Code)
Adds a number of standard component class transform workers:
  • Retain -- allows fields to retain their values between requests
  • Persist -- allows fields to store their their value persistently between requests
  • Parameter -- identifies parameters based on the org.apache.tapestry.annotations.Parameter annotation
  • Component -- identifies embedded components based on the org.apache.tapestry.annotations.Component annotation
  • Mixin -- adds a mixin as part of a component's implementation
  • Environment -- allows fields to contain values extracted from the Environment service
  • Inject -- used with the Inject annotation, when a value is supplied
  • InjectResources -- used with the Inject annotation, when no value is supplied
  • InjectPage -- adds code to allow access to other pages via the InjectPage field annotation
  • InjectBlock -- allows a block from the template to be injected into a field
  • SupportsInformalParameters -- checks for the annotation
  • Meta -- checks for meta data and adds it to the component model
  • ApplicationState -- converts fields that reference application state objects
  • UnclaimedField -- identifies unclaimed fields and resets them to null/0/false at the end of the request
  • RenderCommand -- ensures all components also implement RenderCommand
  • SetupRender, BeginRender, etc. -- correspond to component render phases and annotations



contributeComponentEventResultProcessor
public void contributeComponentEventResultProcessor(ComponentEventResultProcessor componentInstanceProcessor, ComponentClassResolver componentClassResolver, MappedConfiguration<Class, ComponentEventResultProcessor> configuration)(Code)
Contributes handlers for the following types:
Object
Failure case, added to provide a more useful exception message
ActionResponseGenerator
Returns the ActionResponseGenerator; this sometimes occurs when a component generates events whose return values are converted to ActionResponseGenerators (this handles that bubble up case).
Link
Wraps the Link to send a redirect
String
The name of the page to render the response (after a redirect)



contributeDataTypeAnalyzer
public static void contributeDataTypeAnalyzer(OrderedConfiguration<DataTypeAnalyzer> configuration, DataTypeAnalyzer defaultDataTypeAnalyzer)(Code)
Adds the TapestryModule.buildDefaultDataTypeAnalyzer(Map) DefaultDatatTypeAnalyzer to the configuration, ordered explicitly last.



contributeDefaultDataTypeAnalyzer
public static void contributeDefaultDataTypeAnalyzer(MappedConfiguration<Class, String> configuration)(Code)
Maps property types to data type names
  • String --> text
  • Number --> text
  • Enum --> enum
  • Boolean --> checkbox



contributeFieldValidatorSource
public static void contributeFieldValidatorSource(MappedConfiguration<String, Validator> configuration)(Code)
Contributes the basic set of validators:
  • required
  • minlength
  • maxlength
  • min
  • max
  • regexp



contributeInjectionProvider
public static void contributeInjectionProvider(OrderedConfiguration<InjectionProvider> configuration, SymbolSource symbolSource, AssetSource assetSource)(Code)
Contributes the elemental providers:
  • ComponentResources -- give component access to its resources
  • CommonResources -- access to properties of resources (log, messages, etc.)
  • Asset -- injection of assets (triggered via Path annotation), with the path relative to the component class



contributeMasterDispatcher
public void contributeMasterDispatcher(OrderedConfiguration<Dispatcher> configuration, ClasspathAssetAliasManager aliasManager, ResourceCache resourceCache, ResourceStreamer streamer, PageRenderRequestHandler pageRenderRequestHandler, ComponentActionRequestHandler componentActionRequestHandler, ComponentClassResolver componentClassResolver, String startPageName)(Code)



contributeMasterObjectProvider
public static void contributeMasterObjectProvider(OrderedConfiguration<ObjectProvider> configuration, Alias alias, ObjectProvider assetObjectProvider)(Code)
Contributes two object providers:
  • Alias: Searches by type among to the Alias service
  • Asset: Checks for the Path annotation, and injects an Asset
  • Service: Injects based on the Service annotation, if present



contributeMetaDataLocator
public void contributeMetaDataLocator(MappedConfiguration<String, String> configuration)(Code)
Contributes meta data defaults:
PersistentFieldManagerImpl.META_KEY
PersistentFieldManagerImpl.DEFAULT_STRATEGY
TapestryConstants.RESPONSE_CONTENT_TYPE
text/html
TapestryConstants.RESPONSE_ENCODING
UTF-8

Parameters:
  configuration -



contributeObjectRenderer
public void contributeObjectRenderer(MappedConfiguration<Class, ObjectRenderer> configuration, ObjectRenderer locationRenderer, TypeCoercer typeCoercer)(Code)
Contributes a default object renderer for type Object, plus specialized renderers for Request and Location .



contributePageRenderInitializer
public void contributePageRenderInitializer(OrderedConfiguration<PageRenderCommand> configuration, ThreadLocale threadLocale, Asset stylesheetAsset, Asset fieldErrorIcon, ValidationMessagesSource validationMessagesSource, SymbolSource symbolSource, AssetSource assetSource)(Code)



contributePersistentFieldManager
public void contributePersistentFieldManager(MappedConfiguration<String, PersistentFieldStrategy> configuration, Request request, PersistentFieldStrategy clientStrategy)(Code)
Contributes several strategies:
session
Values are stored in the Session
flash
Values are stored in the Session , until the next request (for the page)
client
Values are encoded into URLs (or hidden form fields)



contributeRequestHandler
public static void contributeRequestHandler(OrderedConfiguration<RequestFilter> configuration, Context context, RequestExceptionHandler exceptionHandler)(Code)
Contributes filter "StaticFilesFilter" that identifies requests for static resources and terminates the pipeline by returning false. Generally, most filters should be ordered after this filter.



contributeTranslatorDefaultSource
public static void contributeTranslatorDefaultSource(MappedConfiguration<Class, Translator> configuration)(Code)
Contributes the basic set of default translators:
  • Integer
  • String
  • Long
  • Double



contributeTranslatorSource
public static void contributeTranslatorSource(MappedConfiguration<String, Translator> configuration)(Code)
Contributes the basic set of named translators:
  • integer
  • string
  • long
  • double



contributeTypeCoercer
public static void contributeTypeCoercer(Configuration<CoercionTuple> configuration)(Code)
Adds coercions:



contributeValidationConstraintGenerator
public static void contributeValidationConstraintGenerator(OrderedConfiguration<ValidationConstraintGenerator> configuration)(Code)
Adds built-in constraint generators:
  • PrimtiveField -- primitive fields are always required
  • ValidateAnnotation -- adds constraints from a Validate annotation



contributeValidationMessagesSource
public void contributeValidationMessagesSource(Configuration<String> configuration)(Code)



contributeValueEncoderSource
public static void contributeValueEncoderSource(MappedConfiguration<Class, ValueEncoderFactory> configuration)(Code)
Contributes ValueEncoderFactory s for types:
  • String
  • Enum

Parameters:
  configuration -



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

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