Commit Graph
24 Commits
Author SHA1 Message Date
Chris Beams 28520fd5db Rename TransactionManagementConfigurer callback
Renamed TransactionManagementConfigurer#createTransactionManager()
to #annotationDrivenTransactionManager() to better reflect the fact
that the implemented method is optionally eligible for @Bean annotation.

See Javadoc for details.

git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@4409 50f2f4bb-b051-0410-bef5-90022cba6387
2011-06-02 14:28:16 +00:00
Chris Beams ae9e165d54 Introduce @EnableTransactionManagement
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@4267 50f2f4bb-b051-0410-bef5-90022cba6387
2011-05-06 19:10:25 +00:00
Chris Beams c892028705 Remove "Feature" support introduced in 3.1 M1
Feature-related support such as @Feature, @FeatureConfiguration,
and FeatureSpecification types will be replaced by framework-provided
@Configuration classes and convenience annotations such as
@ComponentScan (already exists), @EnableAsync, @EnableScheduling,
@EnableTransactionManagement and others.

Issue: SPR-8012,SPR-8034,SPR-8039,SPR-8188,SPR-8206,SPR-8223,
SPR-8225,SPR-8226,SPR-8227

git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@4255 50f2f4bb-b051-0410-bef5-90022cba6387
2011-05-06 19:03:52 +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
Juergen Hoeller 544208bc46 introspect superclass when given a CGLIB proxy as target class (SPR-7448); use generic Class<?> in TransactionAttributeSource signature
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3566 50f2f4bb-b051-0410-bef5-90022cba6387
2010-08-11 21:47:50 +00:00
Juergen Hoeller 188efe752e transaction names based on method id from most specific method (target class instead of interface; SPR-7317)
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3465 50f2f4bb-b051-0410-bef5-90022cba6387
2010-06-28 19:47:13 +00:00
Juergen Hoeller 509930ab35 @Transactional qualifier value matches against @Qualifier annotations on @Bean methods as well (SPR-7232)
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3368 50f2f4bb-b051-0410-bef5-90022cba6387
2010-05-26 09:46:03 +00:00
Juergen Hoeller 5a41fc20eb avoid Synchronization List preparations upfront if possible (SPR-6999)
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3131 50f2f4bb-b051-0410-bef5-90022cba6387
2010-03-22 14:31:58 +00:00
Juergen Hoeller c6f1d755b5 included qualifier value in debug log for each transaction (SPR-6811)
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@2937 50f2f4bb-b051-0410-bef5-90022cba6387
2010-02-09 14:57:17 +00:00
Juergen Hoeller 30dfba110d fixed WebSphereUowTransactionManager regression: correctly roll back in case of exception (SPR-6695)
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@2907 50f2f4bb-b051-0410-bef5-90022cba6387
2010-02-03 19:41:14 +00:00
Juergen Hoeller 9991a013fd TransactionInterceptor is able to serialize "transactionManagerBeanName" as well (SPR-6680)
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@2889 50f2f4bb-b051-0410-bef5-90022cba6387
2010-02-01 14:45:11 +00:00
Juergen Hoeller 4db47a01d8 added test with custom repository annotation
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@1719 50f2f4bb-b051-0410-bef5-90022cba6387
2009-08-08 13:57:05 +00:00
Sam Brannen aef72ba508 [SPR-5895] Upgraded to EasyMock 2.5.1.
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@1462 50f2f4bb-b051-0410-bef5-90022cba6387
2009-07-03 09:32:15 +00:00
Sam Brannen 01023ec911 Updated regarding generics; fixed typos.
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@1245 50f2f4bb-b051-0410-bef5-90022cba6387
2009-05-25 09:04:05 +00:00
Juergen Hoeller f4f3667679 @Transactional supports qualifier value for choosing between multiple transaction managers
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@1134 50f2f4bb-b051-0410-bef5-90022cba6387
2009-05-08 23:13:43 +00:00
Juergen Hoeller 906adab5a4 custom stereotype annotations can be meta-annotated with @Service, @Controller etc as well; @Scope and @Transactional are now supported as meta-annotations on custom annotations
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@1065 50f2f4bb-b051-0410-bef5-90022cba6387
2009-04-26 11:41:06 +00:00
Arjen Poutsma e57280b066 Added some leftover tests
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@818 50f2f4bb-b051-0410-bef5-90022cba6387
2009-03-25 11:26:39 +00:00
Chris Beams e1965dea0f eliminated svn:externals in favor of localized copies of shared artifacts
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@472 50f2f4bb-b051-0410-bef5-90022cba6387
2008-12-18 21:27:18 +00:00
Chris Beams 2796c55974 Whitespace polishing: leading spaces->tabs; updated eclipse configuration to default to leading tabs for all bundles
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@464 50f2f4bb-b051-0410-bef5-90022cba6387
2008-12-18 14:50:25 +00:00
Chris Beams 0a5c6f22a2 moving unit tests from .testsuite -> .transaction
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@456 50f2f4bb-b051-0410-bef5-90022cba6387
2008-12-17 20:10:34 +00:00
Chris Beams bb29795904 moving unit tests from .testsuite -> .transaction
fixed externals issue with .portlet that caused build failure

git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@455 50f2f4bb-b051-0410-bef5-90022cba6387
2008-12-17 19:46:35 +00:00
Chris Beams 3b75281897 moved jca.* unit tests from .testsuite -> .transaction
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@437 50f2f4bb-b051-0410-bef5-90022cba6387
2008-12-16 22:55:07 +00:00
Arjen Poutsma f8bed191d8 Moved tests from testsuite to tx
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@244 50f2f4bb-b051-0410-bef5-90022cba6387
2008-10-31 09:50:03 +00:00
Arjen Poutsma b0baaebdca Initial import of tx bundle
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@121 50f2f4bb-b051-0410-bef5-90022cba6387
2008-10-23 14:09:34 +00:00