Polishing
This commit is contained in:
@@ -38,16 +38,17 @@ import org.springframework.util.ClassUtils;
|
||||
public class TransactionManagementConfigurationSelector extends AdviceModeImportSelector<EnableTransactionManagement> {
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
* @return {@link ProxyTransactionManagementConfiguration} or
|
||||
* {@code AspectJTransactionManagementConfiguration} for {@code PROXY} and
|
||||
* {@code ASPECTJ} values of {@link EnableTransactionManagement#mode()}, respectively
|
||||
* Returns {@link ProxyTransactionManagementConfiguration} or
|
||||
* {@code AspectJ(Jta)TransactionManagementConfiguration} for {@code PROXY}
|
||||
* and {@code ASPECTJ} values of {@link EnableTransactionManagement#mode()},
|
||||
* respectively.
|
||||
*/
|
||||
@Override
|
||||
protected String[] selectImports(AdviceMode adviceMode) {
|
||||
switch (adviceMode) {
|
||||
case PROXY:
|
||||
return new String[] {AutoProxyRegistrar.class.getName(), ProxyTransactionManagementConfiguration.class.getName()};
|
||||
return new String[] {AutoProxyRegistrar.class.getName(),
|
||||
ProxyTransactionManagementConfiguration.class.getName()};
|
||||
case ASPECTJ:
|
||||
return new String[] {determineTransactionAspectClass()};
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user