From b0ed6d5685ec0cabb911d0f3d2dbfc976da2ee2c Mon Sep 17 00:00:00 2001 From: Juergen Hoeller Date: Tue, 12 May 2009 23:53:45 +0000 Subject: [PATCH] polishing --- .../interceptor/DefaultTransactionAttribute.java | 10 +++++++++- .../transaction/interceptor/TransactionAttribute.java | 6 ++++++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/org.springframework.transaction/src/main/java/org/springframework/transaction/interceptor/DefaultTransactionAttribute.java b/org.springframework.transaction/src/main/java/org/springframework/transaction/interceptor/DefaultTransactionAttribute.java index c197ffc894..d9a9cf515e 100644 --- a/org.springframework.transaction/src/main/java/org/springframework/transaction/interceptor/DefaultTransactionAttribute.java +++ b/org.springframework.transaction/src/main/java/org/springframework/transaction/interceptor/DefaultTransactionAttribute.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2006 the original author or authors. + * Copyright 2002-2009 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -69,10 +69,18 @@ public class DefaultTransactionAttribute extends DefaultTransactionDefinition im } + /** + * Associate a qualifier value with this transaction attribute. + *

This may be used for choosing a corresponding transaction manager + * to process this specific transaction. + */ public void setQualifier(String qualifier) { this.qualifier = qualifier; } + /** + * Return a qualifier value associated with this transaction attribute. + */ public String getQualifier() { return this.qualifier; } diff --git a/org.springframework.transaction/src/main/java/org/springframework/transaction/interceptor/TransactionAttribute.java b/org.springframework.transaction/src/main/java/org/springframework/transaction/interceptor/TransactionAttribute.java index 754f2ef023..e208008cb6 100644 --- a/org.springframework.transaction/src/main/java/org/springframework/transaction/interceptor/TransactionAttribute.java +++ b/org.springframework.transaction/src/main/java/org/springframework/transaction/interceptor/TransactionAttribute.java @@ -24,12 +24,18 @@ import org.springframework.transaction.TransactionDefinition; * in the AOP transaction package. * * @author Rod Johnson + * @author Juergen Hoeller * @since 16.03.2003 * @see DefaultTransactionAttribute * @see RuleBasedTransactionAttribute */ public interface TransactionAttribute extends TransactionDefinition { + /** + * Return a qualifier value associated with this transaction attribute. + *

This may be used for choosing a corresponding transaction manager + * to process this specific transaction. + */ String getQualifier(); /**