Commit c38bb965 authored by Stephane Nicoll's avatar Stephane Nicoll

Polish

parent 82207ffc
...@@ -92,7 +92,7 @@ public class LiquibaseProperties { ...@@ -92,7 +92,7 @@ public class LiquibaseProperties {
private Map<String, String> parameters; private Map<String, String> parameters;
/** /**
* The file to which rollback SQL will be written when an update is performed. * File to which rollback SQL will be written when an update is performed.
*/ */
private File rollbackFile; private File rollbackFile;
......
...@@ -24,6 +24,7 @@ import javax.sql.DataSource; ...@@ -24,6 +24,7 @@ import javax.sql.DataSource;
import org.springframework.boot.autoconfigure.jdbc.EmbeddedDatabaseConnection; import org.springframework.boot.autoconfigure.jdbc.EmbeddedDatabaseConnection;
import org.springframework.boot.context.properties.ConfigurationProperties; import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.DeprecatedConfigurationProperty; import org.springframework.boot.context.properties.DeprecatedConfigurationProperty;
import org.springframework.boot.context.properties.NestedConfigurationProperty;
import org.springframework.orm.jpa.vendor.Database; import org.springframework.orm.jpa.vendor.Database;
import org.springframework.util.StringUtils; import org.springframework.util.StringUtils;
...@@ -145,6 +146,7 @@ public class JpaProperties { ...@@ -145,6 +146,7 @@ public class JpaProperties {
*/ */
private Boolean useNewIdGeneratorMappings; private Boolean useNewIdGeneratorMappings;
@NestedConfigurationProperty
private final Naming naming = new Naming(); private final Naming naming = new Naming();
@Deprecated @Deprecated
......
...@@ -17,6 +17,7 @@ ...@@ -17,6 +17,7 @@
package org.springframework.boot.jta.narayana; package org.springframework.boot.jta.narayana;
import java.util.Arrays; import java.util.Arrays;
import java.util.Collections;
import java.util.List; import java.util.List;
import org.springframework.boot.context.properties.ConfigurationProperties; import org.springframework.boot.context.properties.ConfigurationProperties;
...@@ -42,85 +43,68 @@ public class NarayanaProperties { ...@@ -42,85 +43,68 @@ public class NarayanaProperties {
private String logDir; private String logDir;
/** /**
* Unique transaction manager id. Default: 1. * Unique transaction manager id.
*/ */
private String transactionManagerId = "1"; private String transactionManagerId = "1";
/** /**
* Enable one phase commit optimisation. Default: <code>true</code>. * Enable one phase commit optimisation.
*/ */
private boolean onePhaseCommit = true; private boolean onePhaseCommit = true;
/** /**
* Transaction timeout in seconds. Default: <code>60</code>. * Transaction timeout in seconds.
*/ */
private int defaultTimeout = 60; private int defaultTimeout = 60;
/** /**
* Interval in which periodic recovery scans are performed in seconds. Default: * Interval in which periodic recovery scans are performed in seconds.
* <code>120</code>
*/ */
private int periodicRecoveryPeriod = 120; private int periodicRecoveryPeriod = 120;
/** /**
* Back off period between first and second phases of the recovery scan in seconds. * Back off period between first and second phases of the recovery scan in seconds.
* Default: <code>10</code>
*/ */
private int recoveryBackoffPeriod = 10; private int recoveryBackoffPeriod = 10;
/** /**
* Database username to be used by recovery manager. Default: <code>null</code> * Database username to be used by recovery manager.
*/ */
private String recoveryDbUser = null; private String recoveryDbUser = null;
/** /**
* Database password to be used by recovery manager. Default: <code>null</code> * Database password to be used by recovery manager.
*/ */
private String recoveryDbPass = null; private String recoveryDbPass = null;
/** /**
* JMS username to be used by recovery manager. Default: <code>null</code> * JMS username to be used by recovery manager.
*/ */
private String recoveryJmsUser = null; private String recoveryJmsUser = null;
/** /**
* JMS password to be used by recovery manager. Default: <code>null</code> * JMS password to be used by recovery manager.
*/ */
private String recoveryJmsPass = null; private String recoveryJmsPass = null;
/** /**
* List of orphan filters. Default: * Comma-separated list of of orphan filters.
* <ul>
* <li>com.arjuna.ats.internal.jta.recovery.arjunacore.
* JTATransactionLogXAResourceOrphanFilter</li>
* <li>
* com.arjuna.ats.internal.jta.recovery.arjunacore.JTANodeNameXAResourceOrphanFilter
* </li>
* </ul>
*/ */
private List<String> xaResourceOrphanFilters = Arrays.asList( private List<String> xaResourceOrphanFilters = Arrays.asList(
"com.arjuna.ats.internal.jta.recovery.arjunacore.JTATransactionLogXAResourceOrphanFilter", "com.arjuna.ats.internal.jta.recovery.arjunacore.JTATransactionLogXAResourceOrphanFilter",
"com.arjuna.ats.internal.jta.recovery.arjunacore.JTANodeNameXAResourceOrphanFilter"); "com.arjuna.ats.internal.jta.recovery.arjunacore.JTANodeNameXAResourceOrphanFilter");
/** /**
* List of recovery modules. Default: * Comma-separated list of recovery modules.
* <ul>
* <li>com.arjuna.ats.internal.arjuna.recovery.AtomicActionRecoveryModule</li>
* <li>com.arjuna.ats.internal.jta.recovery.arjunacore.XARecoveryModule</li>
* </ul>
*/ */
private List<String> recoveryModules = Arrays.asList( private List<String> recoveryModules = Arrays.asList(
"com.arjuna.ats.internal.arjuna.recovery.AtomicActionRecoveryModule", "com.arjuna.ats.internal.arjuna.recovery.AtomicActionRecoveryModule",
"com.arjuna.ats.internal.jta.recovery.arjunacore.XARecoveryModule"); "com.arjuna.ats.internal.jta.recovery.arjunacore.XARecoveryModule");
/** /**
* List of expiry scanners. Default: * Comma-separated list of expiry scanners.
* <ul>
* <li>com.arjuna.ats.internal.arjuna.recovery.ExpiredTransactionStatusManagerScanner
* </li>
* </ul>
*/ */
private List<String> expiryScanners = Arrays.asList( private List<String> expiryScanners = Collections.singletonList(
"com.arjuna.ats.internal.arjuna.recovery.ExpiredTransactionStatusManagerScanner"); "com.arjuna.ats.internal.arjuna.recovery.ExpiredTransactionStatusManagerScanner");
public String getLogDir() { public String getLogDir() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment