Commit Graph
38 Commits
Author SHA1 Message Date
Rossen Stoyanchev f4bfd5766a SPR-6996 Add mvc:interceptor bean references
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@4307 50f2f4bb-b051-0410-bef5-90022cba6387
2011-05-13 18:06:55 +00:00
Chris Beams fc3ccd1052 Expose return-value-handlers in mvc namespace
Mirroring the MvcConfigurer#addCustomReturnValueHandlers callback which
allows for providing a list of HandlerMethodReturnValueHandler types

git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@4271 50f2f4bb-b051-0410-bef5-90022cba6387
2011-05-06 19:13:44 +00:00
Rossen Stoyanchev a9ddca1100 Improve docs for MvcDefaultServletHandler container feature.
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@4056 50f2f4bb-b051-0410-bef5-90022cba6387
2011-03-01 14:32:34 +00:00
Chris Beams adc9400905 Include license.txt and notice.txt in module JARs
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3967 50f2f4bb-b051-0410-bef5-90022cba6387
2011-02-09 06:56:40 +00:00
Chris Beams dc22760978 Introduce FeatureSpecification support
Introduce FeatureSpecification interface and implementations

    FeatureSpecification objects decouple the configuration of
    spring container features from the concern of parsing XML
    namespaces, allowing for reuse in code-based configuration
    (see @Feature* annotations below).

    * ComponentScanSpec
    * TxAnnotationDriven
    * MvcAnnotationDriven
    * MvcDefaultServletHandler
    * MvcResources
    * MvcViewControllers

Refactor associated BeanDefinitionParsers to delegate to new impls above

    The following BeanDefinitionParser implementations now deal only
    with the concern of XML parsing.  Validation is handled by their
    corresponding FeatureSpecification object.  Bean definition creation
    and registration is handled by their corresponding
    FeatureSpecificationExecutor type.

    * ComponentScanBeanDefinitionParser
    * AnnotationDrivenBeanDefinitionParser (tx)
    * AnnotationDrivenBeanDefinitionParser (mvc)
    * DefaultServletHandlerBeanDefinitionParser
    * ResourcesBeanDefinitionParser
    * ViewControllerBeanDefinitionParser

Update AopNamespaceUtils to decouple from XML (DOM API)

    Methods necessary for executing TxAnnotationDriven specification
    (and eventually, the AspectJAutoProxy specification) have been
    added that accept boolean arguments for whether to proxy
    target classes and whether to expose the proxy via threadlocal.

    Methods that accepted and introspected DOM Element objects still
    exist but have been deprecated.

Introduce @FeatureConfiguration classes and @Feature methods

    Allow for creation and configuration of FeatureSpecification objects
    at the user level.  A companion for @Configuration classes allowing
    for completely code-driven configuration of the Spring container.

    See changes in ConfigurationClassPostProcessor for implementation
    details.

    See Feature*Tests for usage examples.

    FeatureTestSuite in .integration-tests is a JUnit test suite designed
    to aggregate all BDP and Feature* related tests for a convenient way
    to confirm that Feature-related changes don't break anything.
    Uncomment this test and execute from Eclipse / IDEA. Due to classpath
    issues, this cannot be compiled by Ant/Ivy at the command line.

Introduce @FeatureAnnotation meta-annotation and @ComponentScan impl

    @FeatureAnnotation provides an alternate mechanism for creating
    and executing FeatureSpecification objects.  See @ComponentScan
    and its corresponding ComponentScanAnnotationParser implementation
    for details.  See ComponentScanAnnotationIntegrationTests for usage
    examples

Introduce Default[Formatting]ConversionService implementations

    Allows for convenient instantiation of ConversionService objects
    containing defaults appropriate for most environments.  Replaces
    similar support originally in ConversionServiceFactory (which is now
    deprecated). This change was justified by the need to avoid use
    of FactoryBeans in @Configuration classes (such as
    FormattingConversionServiceFactoryBean). It is strongly preferred
    that users simply instantiate and configure the objects that underlie
    our FactoryBeans. In the case of the ConversionService types, the
    easiest way to do this is to create Default* subtypes. This also
    follows convention with the rest of the framework.

Minor updates to util classes

    All in service of changes above. See diffs for self-explanatory
    details.

    * BeanUtils
    * ObjectUtils
    * ReflectionUtils

git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3954 50f2f4bb-b051-0410-bef5-90022cba6387
2011-02-08 14:42:33 +00:00
Rossen Stoyanchev 0d06b35924 SPR-7327 Add minOccurs=0 to sub-elements of mvc:annotation-driven and add more tests
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3938 50f2f4bb-b051-0410-bef5-90022cba6387
2011-02-03 22:56:13 +00:00
Rossen Stoyanchev 5c337da704 SPR-7327 add <mvc:argument-resolvers> namespace element
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3937 50f2f4bb-b051-0410-bef5-90022cba6387
2011-02-03 15:22:00 +00:00
Rossen Stoyanchev 26c92551dd SPR-7912 Add tests for FormattingConversionServiceFactoryBean, update reference docs, and remove mvc:formatters
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3928 50f2f4bb-b051-0410-bef5-90022cba6387
2011-01-27 11:26:19 +00:00
Rossen Stoyanchev 174f609be4 SPR-7732, SPR-6506, SPR-7191 MVC Namespace improvements to the annotation-driven element - custom message converters, formatters, and message codes resolver.
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3920 50f2f4bb-b051-0410-bef5-90022cba6387
2011-01-25 17:49:57 +00:00
Chris Beams 45e5b46fc2 Merge 3.1.0 development branch into trunk
Branch in question is 'env' branch from git://git.springsource.org/sandbox/cbeams.git; merged into
git-svn repository with:

    git merge -s recursive -Xtheirs --no-commit env

No merge conflicts, but did need to

    git rm spring-build

prior to committing.

With this change, Spring 3.1.0 development is now happening on SVN
trunk. Further commits to the 3.0.x line will happen in an as-yet
uncreated SVN branch.  3.1.0 snapshots will be available
per the usual nightly CI build from trunk.

git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3782 50f2f4bb-b051-0410-bef5-90022cba6387
2010-10-25 19:48:20 +00:00
Juergen Hoeller fded7496d5 renamed "mapping-order" to "order"; added "cache-period"
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3598 50f2f4bb-b051-0410-bef5-90022cba6387
2010-08-16 19:04:51 +00:00
Juergen Hoeller 3f23b8f258 revised ResourceHttpRequestHandler (SPR-7116)
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3548 50f2f4bb-b051-0410-bef5-90022cba6387
2010-08-08 23:25:49 +00:00
Jeremy Grelle c7f1a2fd76 SPR-7116 - Simplified (removed gzip and white-listing) and completed XML namespace config.
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3516 50f2f4bb-b051-0410-bef5-90022cba6387
2010-07-31 01:09:40 +00:00
Keith Donald 407b1bb354 mvc resources handler initial commit
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3442 50f2f4bb-b051-0410-bef5-90022cba6387
2010-06-22 21:26:03 +00:00
Juergen Hoeller 9380113ec0 JSP HiddenInputTag allows for using common HTML attributes (SPR-7249)
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3386 50f2f4bb-b051-0410-bef5-90022cba6387
2010-06-07 20:32:52 +00:00
Keith Donald ef80ddf816 Spring eval docs
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@2969 50f2f4bb-b051-0410-bef5-90022cba6387
2010-02-12 20:43:40 +00:00
Keith Donald 649a402a27 Spring eval docs
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@2968 50f2f4bb-b051-0410-bef5-90022cba6387
2010-02-12 20:42:35 +00:00
Keith Donald 7a3fe2081c spring:eval tag initial commit
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@2956 50f2f4bb-b051-0410-bef5-90022cba6387
2010-02-11 22:53:49 +00:00
Juergen Hoeller 127553f9a7 polishing
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@2945 50f2f4bb-b051-0410-bef5-90022cba6387
2010-02-10 21:29:13 +00:00
Keith Donald 26a1bed4fd renamed path element to mapping per code review
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@2551 50f2f4bb-b051-0410-bef5-90022cba6387
2009-11-30 16:32:59 +00:00
Keith Donald d7906963a3 ability to have multiple path patterns per mapped interceptor definition
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@2542 50f2f4bb-b051-0410-bef5-90022cba6387
2009-11-30 07:51:29 +00:00
Keith Donald 690e243482 added back mvc:interceptors element and added interceptor matching based on path pattern; needs review
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@2541 50f2f4bb-b051-0410-bef5-90022cba6387
2009-11-30 02:55:02 +00:00
Keith Donald 2440277399 SPR-6413 and SPR-6414 first cut: needs review, particularly compatibility note in AbstractHandlerMapping
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@2510 50f2f4bb-b051-0410-bef5-90022cba6387
2009-11-26 08:27:42 +00:00
Keith Donald ef3cf61484 mvc namespace interceptors element--ignoring test case until issue with setting collection of bean definition property values is resolved
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@2488 50f2f4bb-b051-0410-bef5-90022cba6387
2009-11-21 16:00:53 +00:00
Keith Donald d20ba0adec mvc:interceptors namespace element initial commit
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@2487 50f2f4bb-b051-0410-bef5-90022cba6387
2009-11-21 15:17:26 +00:00
Thomas Risberg df583711f1 added entry for unversioned xsd reference
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@2334 50f2f4bb-b051-0410-bef5-90022cba6387
2009-11-11 16:29:31 +00:00
Keith Donald 043b001a67 docs
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@2332 50f2f4bb-b051-0410-bef5-90022cba6387
2009-11-11 15:51:43 +00:00
Christian Dupuis 02c23384d3 update icon for mvc namespace
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@2330 50f2f4bb-b051-0410-bef5-90022cba6387
2009-11-11 15:42:53 +00:00
Keith Donald 260b4c445d not needed according to Christian
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@2329 50f2f4bb-b051-0410-bef5-90022cba6387
2009-11-11 15:28:29 +00:00
Keith Donald 330bffd647 mvc namespace conversion-service and validator attributes
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@2328 50f2f4bb-b051-0410-bef5-90022cba6387
2009-11-11 15:26:08 +00:00
Keith Donald 7ce0d7841d results of code review of mvc namespace
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@2316 50f2f4bb-b051-0410-bef5-90022cba6387
2009-11-10 19:15:32 +00:00
Keith Donald 612b83b036 spring mvc namespace initial commit; work in progress
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@2271 50f2f4bb-b051-0410-bef5-90022cba6387
2009-11-05 21:49:21 +00:00
Jeremy Grelle 0622172ea0 SPR-5931 - Allow non-standard attributes in <form> tags
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@1946 50f2f4bb-b051-0410-bef5-90022cba6387
2009-09-21 02:48:00 +00:00
Jeremy Grelle e1dd582823 SPR-6114 - Upgrade the Spring JSP tag libraries to JSP 2.0
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@1923 50f2f4bb-b051-0410-bef5-90022cba6387
2009-09-17 22:39:35 +00:00
Scott Andrews 2d2924e8ce SPR-5605 spring:url tag should use htmlEscape instead of escapeXml for entity encoding
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@825 50f2f4bb-b051-0410-bef5-90022cba6387
2009-03-26 04:37:26 +00:00
Scott Andrews 9c867cfa3d javadoc polish
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@578 50f2f4bb-b051-0410-bef5-90022cba6387
2009-01-23 15:18:25 +00:00
Scott Andrews ba127b91f1 SPR-3389 Nicer handling of Java 5 enums by the Spring MVC form taglib.
The form:options and form:radiobuttons tags will now render a set of options automatically if the bind target is an Enum and items are not otherwise specified.  The values of the enum are converted into form inputs where by default the form value is the enum's name() and the form label is the enum's toString().

git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@575 50f2f4bb-b051-0410-bef5-90022cba6387
2009-01-22 20:36:36 +00:00
Scott Andrews 6ab1b3476e SPR-5299 TLDs must be located under META-INF
Moving spring.tld and spring-form.tld under /src/main/resources/META-INF so they can be automatically discovered by the servlet container.

git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@292 50f2f4bb-b051-0410-bef5-90022cba6387
2008-11-17 15:10:26 +00:00