Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
开发团队
Flowable Engine
提交
b13e7c66
F
Flowable Engine
项目概览
开发团队
/
Flowable Engine
通知
9
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
F
Flowable Engine
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
b13e7c66
编写于
7月 15, 2011
作者:
M
meyerd
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Restoring formatting in ProcessEngineConfiguration & ProcessEngineConfigurationImpl
上级
8646b1c7
变更
2
展开全部
隐藏空白更改
内联
并排
Showing
2 changed file
with
1424 addition
and
1545 deletion
+1424
-1545
modules/activiti-engine/src/main/java/org/activiti/engine/ProcessEngineConfiguration.java
.../java/org/activiti/engine/ProcessEngineConfiguration.java
+96
-96
modules/activiti-engine/src/main/java/org/activiti/engine/impl/cfg/ProcessEngineConfigurationImpl.java
...iviti/engine/impl/cfg/ProcessEngineConfigurationImpl.java
+1328
-1449
未找到文件。
modules/activiti-engine/src/main/java/org/activiti/engine/ProcessEngineConfiguration.java
浏览文件 @
b13e7c66
/* Licensed under the Apache License, Version 2.0 (the "License");
/* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
...
@@ -23,44 +23,44 @@ import org.activiti.engine.impl.cfg.StandaloneProcessEngineConfiguration;
...
@@ -23,44 +23,44 @@ import org.activiti.engine.impl.cfg.StandaloneProcessEngineConfiguration;
/** Configuration information from which a process engine can be build.
/** Configuration information from which a process engine can be build.
*
*
* <p>Most common is to create a process engine based on the default configuration file:
* <p>Most common is to create a process engine based on the default configuration file:
* <pre>ProcessEngine processEngine = ProcessEngineConfiguration
* <pre>ProcessEngine processEngine = ProcessEngineConfiguration
* .createProcessEngineConfigurationFromResourceDefault()
* .createProcessEngineConfigurationFromResourceDefault()
* .buildProcessEngine();
* .buildProcessEngine();
* </pre>
* </pre>
* </p>
* </p>
*
*
* <p>To create a process engine programatic, without a configuration file,
* <p>To create a process engine programatic, without a configuration file,
* the first option is {@link #createStandaloneProcessEngineConfiguration()}
* the first option is {@link #createStandaloneProcessEngineConfiguration()}
* <pre>ProcessEngine processEngine = ProcessEngineConfiguration
* <pre>ProcessEngine processEngine = ProcessEngineConfiguration
* .createStandaloneProcessEngineConfiguration()
* .createStandaloneProcessEngineConfiguration()
* .buildProcessEngine();
* .buildProcessEngine();
* </pre>
* </pre>
* This creates a new process engine with all the defaults to connect to
* This creates a new process engine with all the defaults to connect to
* a remote h2 database (jdbc:h2:tcp://localhost/activiti) in standalone
* a remote h2 database (jdbc:h2:tcp://localhost/activiti) in standalone
* mode. Standalone mode means that Activiti will manage the transactions
* mode. Standalone mode means that Activiti will manage the transactions
* on the JDBC connections that it creates. One transaction per
* on the JDBC connections that it creates. One transaction per
* service method.
* service method.
* For a description of how to write the configuration files, see the
* For a description of how to write the configuration files, see the
* userguide.
* userguide.
* </p>
* </p>
*
*
* <p>The second option is great for testing: {@link #createStandalonInMemeProcessEngineConfiguration()}
* <p>The second option is great for testing: {@link #createStandalonInMemeProcessEngineConfiguration()}
* <pre>ProcessEngine processEngine = ProcessEngineConfiguration
* <pre>ProcessEngine processEngine = ProcessEngineConfiguration
* .createStandaloneInMemProcessEngineConfiguration()
* .createStandaloneInMemProcessEngineConfiguration()
* .buildProcessEngine();
* .buildProcessEngine();
* </pre>
* </pre>
* This creates a new process engine with all the defaults to connect to
* This creates a new process engine with all the defaults to connect to
* an memory h2 database (jdbc:h2:tcp://localhost/activiti) in standalone
* an memory h2 database (jdbc:h2:tcp://localhost/activiti) in standalone
* mode. The DB schema strategy default is in this case <code>create-drop</code>.
* mode. The DB schema strategy default is in this case <code>create-drop</code>.
* Standalone mode means that Activiti will manage the transactions
* Standalone mode means that Activiti will manage the transactions
* on the JDBC connections that it creates. One transaction per
* on the JDBC connections that it creates. One transaction per
* service method.
* service method.
* </p>
* </p>
*
*
* <p>On all forms of creating a process engine, you can first customize the configuration
* <p>On all forms of creating a process engine, you can first customize the configuration
* before calling the {@link #buildProcessEngine()} method by calling any of the
* before calling the {@link #buildProcessEngine()} method by calling any of the
* setters like this:
* setters like this:
* <pre>ProcessEngine processEngine = ProcessEngineConfiguration
* <pre>ProcessEngine processEngine = ProcessEngineConfiguration
* .createProcessEngineConfigurationFromResourceDefault()
* .createProcessEngineConfigurationFromResourceDefault()
...
@@ -70,45 +70,45 @@ import org.activiti.engine.impl.cfg.StandaloneProcessEngineConfiguration;
...
@@ -70,45 +70,45 @@ import org.activiti.engine.impl.cfg.StandaloneProcessEngineConfiguration;
* .buildProcessEngine();
* .buildProcessEngine();
* </pre>
* </pre>
* </p>
* </p>
*
*
* @see ProcessEngines
* @see ProcessEngines
* @author Tom Baeyens
* @author Tom Baeyens
*/
*/
public
abstract
class
ProcessEngineConfiguration
{
public
abstract
class
ProcessEngineConfiguration
{
/** Checks the version of the DB schema against the library when
/** Checks the version of the DB schema against the library when
* the process engine is being created and throws an exception
* the process engine is being created and throws an exception
* if the versions don't match. */
* if the versions don't match. */
public
static
final
String
DB_SCHEMA_UPDATE_FALSE
=
"false"
;
public
static
final
String
DB_SCHEMA_UPDATE_FALSE
=
"false"
;
/** Creates the schema when the process engine is being created and
/** Creates the schema when the process engine is being created and
* drops the schema when the process engine is being closed. */
* drops the schema when the process engine is being closed. */
public
static
final
String
DB_SCHEMA_UPDATE_CREATE_DROP
=
"create-drop"
;
public
static
final
String
DB_SCHEMA_UPDATE_CREATE_DROP
=
"create-drop"
;
/** Upon building of the process engine, a check is performed and
/** Upon building of the process engine, a check is performed and
* an update of the schema is performed if it is necessary. */
* an update of the schema is performed if it is necessary. */
public
static
final
String
DB_SCHEMA_UPDATE_TRUE
=
"true"
;
public
static
final
String
DB_SCHEMA_UPDATE_TRUE
=
"true"
;
/** Value for {@link #setHistory(String)} to ensure that no history is being recorded. */
/** Value for {@link #setHistory(String)} to ensure that no history is being recorded. */
public
static
final
String
HISTORY_NONE
=
"none"
;
public
static
final
String
HISTORY_NONE
=
"none"
;
/** Value for {@link #setHistory(String)} to ensure that only historic process instances and
/** Value for {@link #setHistory(String)} to ensure that only historic process instances and
* historic activity instances are being recorded.
* historic activity instances are being recorded.
* This means no details for those entities. */
* This means no details for those entities. */
public
static
final
String
HISTORY_ACTIVITY
=
"activity"
;
public
static
final
String
HISTORY_ACTIVITY
=
"activity"
;
/** Value for {@link #setHistory(String)} to ensure that only historic process instances,
/** Value for {@link #setHistory(String)} to ensure that only historic process instances,
* historic activity instances and submitted form property values are being recorded. */
* historic activity instances and submitted form property values are being recorded. */
public
static
final
String
HISTORY_AUDIT
=
"audit"
;
public
static
final
String
HISTORY_AUDIT
=
"audit"
;
/** Value for {@link #setHistory(String)} to ensure that all historic information is
/** Value for {@link #setHistory(String)} to ensure that all historic information is
* being recorded, including the variable updates. */
* being recorded, including the variable updates. */
public
static
final
String
HISTORY_FULL
=
"full"
;
public
static
final
String
HISTORY_FULL
=
"full"
;
protected
String
processEngineName
=
ProcessEngines
.
NAME_DEFAULT
;
protected
String
processEngineName
=
ProcessEngines
.
NAME_DEFAULT
;
protected
int
idBlockSize
=
100
;
protected
int
idBlockSize
=
100
;
protected
String
history
=
HISTORY_AUDIT
;
protected
String
history
=
HISTORY_AUDIT
;
protected
boolean
jobExecutorActivate
;
protected
boolean
jobExecutorActivate
;
protected
String
mailServerHost
=
"localhost"
;
protected
String
mailServerHost
=
"localhost"
;
protected
String
mailServerUsername
;
// by default no name and password are provided, which
protected
String
mailServerUsername
;
// by default no name and password are provided, which
protected
String
mailServerPassword
;
// means no authentication for mail server
protected
String
mailServerPassword
;
// means no authentication for mail server
protected
int
mailServerPort
=
25
;
protected
int
mailServerPort
=
25
;
protected
String
mailServerDefaultFrom
=
"activiti@localhost"
;
protected
String
mailServerDefaultFrom
=
"activiti@localhost"
;
...
@@ -129,12 +129,12 @@ public abstract class ProcessEngineConfiguration {
...
@@ -129,12 +129,12 @@ public abstract class ProcessEngineConfiguration {
protected
int
jdbcPingConnectionNotUsedFor
;
protected
int
jdbcPingConnectionNotUsedFor
;
protected
DataSource
dataSource
;
protected
DataSource
dataSource
;
protected
boolean
transactionsExternallyManaged
=
false
;
protected
boolean
transactionsExternallyManaged
=
false
;
protected
String
jpaPersistenceUnitName
;
protected
String
jpaPersistenceUnitName
;
protected
Object
jpaEntityManagerFactory
;
protected
Object
jpaEntityManagerFactory
;
protected
boolean
jpaHandleTransaction
;
protected
boolean
jpaHandleTransaction
;
protected
boolean
jpaCloseEntityManager
;
protected
boolean
jpaCloseEntityManager
;
protected
ClassLoader
classLoader
;
protected
ClassLoader
classLoader
;
/** use one of the static createXxxx methods instead */
/** use one of the static createXxxx methods instead */
...
@@ -142,7 +142,7 @@ public abstract class ProcessEngineConfiguration {
...
@@ -142,7 +142,7 @@ public abstract class ProcessEngineConfiguration {
}
}
public
abstract
ProcessEngine
buildProcessEngine
();
public
abstract
ProcessEngine
buildProcessEngine
();
public
static
ProcessEngineConfiguration
createProcessEngineConfigurationFromResourceDefault
()
{
public
static
ProcessEngineConfiguration
createProcessEngineConfigurationFromResourceDefault
()
{
return
createProcessEngineConfigurationFromResource
(
"activiti.cfg.xml"
,
"processEngineConfiguration"
);
return
createProcessEngineConfigurationFromResource
(
"activiti.cfg.xml"
,
"processEngineConfiguration"
);
}
}
...
@@ -154,7 +154,7 @@ public abstract class ProcessEngineConfiguration {
...
@@ -154,7 +154,7 @@ public abstract class ProcessEngineConfiguration {
public
static
ProcessEngineConfiguration
createProcessEngineConfigurationFromResource
(
String
resource
,
String
beanName
)
{
public
static
ProcessEngineConfiguration
createProcessEngineConfigurationFromResource
(
String
resource
,
String
beanName
)
{
return
BeansConfigurationHelper
.
parseProcessEngineConfigurationFromResource
(
resource
,
beanName
);
return
BeansConfigurationHelper
.
parseProcessEngineConfigurationFromResource
(
resource
,
beanName
);
}
}
public
static
ProcessEngineConfiguration
createProcessEngineConfigurationFromInputStream
(
InputStream
inputStream
)
{
public
static
ProcessEngineConfiguration
createProcessEngineConfigurationFromInputStream
(
InputStream
inputStream
)
{
return
createProcessEngineConfigurationFromInputStream
(
inputStream
,
"processEngineConfiguration"
);
return
createProcessEngineConfigurationFromInputStream
(
inputStream
,
"processEngineConfiguration"
);
}
}
...
@@ -175,10 +175,10 @@ public abstract class ProcessEngineConfiguration {
...
@@ -175,10 +175,10 @@ public abstract class ProcessEngineConfiguration {
// public static ProcessEngineConfiguration createJtaProcessEngineConfiguration() {
// public static ProcessEngineConfiguration createJtaProcessEngineConfiguration() {
// return new JtaProcessEngineConfiguration();
// return new JtaProcessEngineConfiguration();
// }
// }
// getters and setters //////////////////////////////////////////////////////
// getters and setters //////////////////////////////////////////////////////
public
String
getProcessEngineName
()
{
public
String
getProcessEngineName
()
{
return
processEngineName
;
return
processEngineName
;
}
}
...
@@ -188,217 +188,216 @@ public abstract class ProcessEngineConfiguration {
...
@@ -188,217 +188,216 @@ public abstract class ProcessEngineConfiguration {
return
this
;
return
this
;
}
}
public
int
getIdBlockSize
()
{
public
int
getIdBlockSize
()
{
return
idBlockSize
;
return
idBlockSize
;
}
}
public
ProcessEngineConfiguration
setIdBlockSize
(
int
idBlockSize
)
{
public
ProcessEngineConfiguration
setIdBlockSize
(
int
idBlockSize
)
{
this
.
idBlockSize
=
idBlockSize
;
this
.
idBlockSize
=
idBlockSize
;
return
this
;
return
this
;
}
}
public
String
getHistory
()
{
public
String
getHistory
()
{
return
history
;
return
history
;
}
}
public
ProcessEngineConfiguration
setHistory
(
String
history
)
{
public
ProcessEngineConfiguration
setHistory
(
String
history
)
{
this
.
history
=
history
;
this
.
history
=
history
;
return
this
;
return
this
;
}
}
public
String
getMailServerHost
()
{
public
String
getMailServerHost
()
{
return
mailServerHost
;
return
mailServerHost
;
}
}
public
ProcessEngineConfiguration
setMailServerHost
(
String
mailServerHost
)
{
public
ProcessEngineConfiguration
setMailServerHost
(
String
mailServerHost
)
{
this
.
mailServerHost
=
mailServerHost
;
this
.
mailServerHost
=
mailServerHost
;
return
this
;
return
this
;
}
}
public
String
getMailServerUsername
()
{
public
String
getMailServerUsername
()
{
return
mailServerUsername
;
return
mailServerUsername
;
}
}
public
ProcessEngineConfiguration
setMailServerUsername
(
String
mailServerUsername
)
{
public
ProcessEngineConfiguration
setMailServerUsername
(
String
mailServerUsername
)
{
this
.
mailServerUsername
=
mailServerUsername
;
this
.
mailServerUsername
=
mailServerUsername
;
return
this
;
return
this
;
}
}
public
String
getMailServerPassword
()
{
public
String
getMailServerPassword
()
{
return
mailServerPassword
;
return
mailServerPassword
;
}
}
public
ProcessEngineConfiguration
setMailServerPassword
(
String
mailServerPassword
)
{
public
ProcessEngineConfiguration
setMailServerPassword
(
String
mailServerPassword
)
{
this
.
mailServerPassword
=
mailServerPassword
;
this
.
mailServerPassword
=
mailServerPassword
;
return
this
;
return
this
;
}
}
public
int
getMailServerPort
()
{
public
int
getMailServerPort
()
{
return
mailServerPort
;
return
mailServerPort
;
}
}
public
ProcessEngineConfiguration
setMailServerPort
(
int
mailServerPort
)
{
public
ProcessEngineConfiguration
setMailServerPort
(
int
mailServerPort
)
{
this
.
mailServerPort
=
mailServerPort
;
this
.
mailServerPort
=
mailServerPort
;
return
this
;
return
this
;
}
}
public
String
getMailServerDefaultFrom
()
{
public
String
getMailServerDefaultFrom
()
{
return
mailServerDefaultFrom
;
return
mailServerDefaultFrom
;
}
}
public
ProcessEngineConfiguration
setMailServerDefaultFrom
(
String
mailServerDefaultFrom
)
{
public
ProcessEngineConfiguration
setMailServerDefaultFrom
(
String
mailServerDefaultFrom
)
{
this
.
mailServerDefaultFrom
=
mailServerDefaultFrom
;
this
.
mailServerDefaultFrom
=
mailServerDefaultFrom
;
return
this
;
return
this
;
}
}
public
String
getDatabaseType
()
{
public
String
getDatabaseType
()
{
return
databaseType
;
return
databaseType
;
}
}
public
ProcessEngineConfiguration
setDatabaseType
(
String
databaseType
)
{
public
ProcessEngineConfiguration
setDatabaseType
(
String
databaseType
)
{
this
.
databaseType
=
databaseType
;
this
.
databaseType
=
databaseType
;
return
this
;
return
this
;
}
}
public
String
getDatabaseSchemaUpdate
()
{
public
String
getDatabaseSchemaUpdate
()
{
return
databaseSchemaUpdate
;
return
databaseSchemaUpdate
;
}
}
public
ProcessEngineConfiguration
setDatabaseSchemaUpdate
(
String
databaseSchemaUpdate
)
{
public
ProcessEngineConfiguration
setDatabaseSchemaUpdate
(
String
databaseSchemaUpdate
)
{
this
.
databaseSchemaUpdate
=
databaseSchemaUpdate
;
this
.
databaseSchemaUpdate
=
databaseSchemaUpdate
;
return
this
;
return
this
;
}
}
public
DataSource
getDataSource
()
{
public
DataSource
getDataSource
()
{
return
dataSource
;
return
dataSource
;
}
}
public
ProcessEngineConfiguration
setDataSource
(
DataSource
dataSource
)
{
public
ProcessEngineConfiguration
setDataSource
(
DataSource
dataSource
)
{
this
.
dataSource
=
dataSource
;
this
.
dataSource
=
dataSource
;
return
this
;
return
this
;
}
}
public
String
getJdbcDriver
()
{
public
String
getJdbcDriver
()
{
return
jdbcDriver
;
return
jdbcDriver
;
}
}
public
ProcessEngineConfiguration
setJdbcDriver
(
String
jdbcDriver
)
{
public
ProcessEngineConfiguration
setJdbcDriver
(
String
jdbcDriver
)
{
this
.
jdbcDriver
=
jdbcDriver
;
this
.
jdbcDriver
=
jdbcDriver
;
return
this
;
return
this
;
}
}
public
String
getJdbcUrl
()
{
public
String
getJdbcUrl
()
{
return
jdbcUrl
;
return
jdbcUrl
;
}
}
public
ProcessEngineConfiguration
setJdbcUrl
(
String
jdbcUrl
)
{
public
ProcessEngineConfiguration
setJdbcUrl
(
String
jdbcUrl
)
{
this
.
jdbcUrl
=
jdbcUrl
;
this
.
jdbcUrl
=
jdbcUrl
;
return
this
;
return
this
;
}
}
public
String
getJdbcUsername
()
{
public
String
getJdbcUsername
()
{
return
jdbcUsername
;
return
jdbcUsername
;
}
}
public
ProcessEngineConfiguration
setJdbcUsername
(
String
jdbcUsername
)
{
public
ProcessEngineConfiguration
setJdbcUsername
(
String
jdbcUsername
)
{
this
.
jdbcUsername
=
jdbcUsername
;
this
.
jdbcUsername
=
jdbcUsername
;
return
this
;
return
this
;
}
}
public
String
getJdbcPassword
()
{
public
String
getJdbcPassword
()
{
return
jdbcPassword
;
return
jdbcPassword
;
}
}
public
ProcessEngineConfiguration
setJdbcPassword
(
String
jdbcPassword
)
{
public
ProcessEngineConfiguration
setJdbcPassword
(
String
jdbcPassword
)
{
this
.
jdbcPassword
=
jdbcPassword
;
this
.
jdbcPassword
=
jdbcPassword
;
return
this
;
return
this
;
}
}
public
boolean
isTransactionsExternallyManaged
()
{
public
boolean
isTransactionsExternallyManaged
()
{
return
transactionsExternallyManaged
;
return
transactionsExternallyManaged
;
}
}
public
ProcessEngineConfiguration
setTransactionsExternallyManaged
(
boolean
transactionsExternallyManaged
)
{
public
ProcessEngineConfiguration
setTransactionsExternallyManaged
(
boolean
transactionsExternallyManaged
)
{
this
.
transactionsExternallyManaged
=
transactionsExternallyManaged
;
this
.
transactionsExternallyManaged
=
transactionsExternallyManaged
;
return
this
;
return
this
;
}
}
public
int
getJdbcMaxActiveConnections
()
{
public
int
getJdbcMaxActiveConnections
()
{
return
jdbcMaxActiveConnections
;
return
jdbcMaxActiveConnections
;
}
}
public
ProcessEngineConfiguration
setJdbcMaxActiveConnections
(
int
jdbcMaxActiveConnections
)
{
public
ProcessEngineConfiguration
setJdbcMaxActiveConnections
(
int
jdbcMaxActiveConnections
)
{
this
.
jdbcMaxActiveConnections
=
jdbcMaxActiveConnections
;
this
.
jdbcMaxActiveConnections
=
jdbcMaxActiveConnections
;
return
this
;
return
this
;
}
}
public
int
getJdbcMaxIdleConnections
()
{
public
int
getJdbcMaxIdleConnections
()
{
return
jdbcMaxIdleConnections
;
return
jdbcMaxIdleConnections
;
}
}
public
ProcessEngineConfiguration
setJdbcMaxIdleConnections
(
int
jdbcMaxIdleConnections
)
{
public
ProcessEngineConfiguration
setJdbcMaxIdleConnections
(
int
jdbcMaxIdleConnections
)
{
this
.
jdbcMaxIdleConnections
=
jdbcMaxIdleConnections
;
this
.
jdbcMaxIdleConnections
=
jdbcMaxIdleConnections
;
return
this
;
return
this
;
}
}
public
int
getJdbcMaxCheckoutTime
()
{
public
int
getJdbcMaxCheckoutTime
()
{
return
jdbcMaxCheckoutTime
;
return
jdbcMaxCheckoutTime
;
}
}
public
ProcessEngineConfiguration
setJdbcMaxCheckoutTime
(
int
jdbcMaxCheckoutTime
)
{
public
ProcessEngineConfiguration
setJdbcMaxCheckoutTime
(
int
jdbcMaxCheckoutTime
)
{
this
.
jdbcMaxCheckoutTime
=
jdbcMaxCheckoutTime
;
this
.
jdbcMaxCheckoutTime
=
jdbcMaxCheckoutTime
;
return
this
;
return
this
;
}
}
public
int
getJdbcMaxWaitTime
()
{
public
int
getJdbcMaxWaitTime
()
{
return
jdbcMaxWaitTime
;
return
jdbcMaxWaitTime
;
}
}
public
ProcessEngineConfiguration
setJdbcMaxWaitTime
(
int
jdbcMaxWaitTime
)
{
public
ProcessEngineConfiguration
setJdbcMaxWaitTime
(
int
jdbcMaxWaitTime
)
{
this
.
jdbcMaxWaitTime
=
jdbcMaxWaitTime
;
this
.
jdbcMaxWaitTime
=
jdbcMaxWaitTime
;
return
this
;
return
this
;
}
}
public
boolean
get
JdbcPingEnabled
()
{
public
boolean
is
JdbcPingEnabled
()
{
return
jdbcPingEnabled
;
return
jdbcPingEnabled
;
}
}
public
ProcessEngineConfiguration
setJdbcPingEnabled
(
boolean
jdbcPingEnabled
)
{
public
ProcessEngineConfiguration
setJdbcPingEnabled
(
boolean
jdbcPingEnabled
)
{
...
@@ -407,69 +406,70 @@ public abstract class ProcessEngineConfiguration {
...
@@ -407,69 +406,70 @@ public abstract class ProcessEngineConfiguration {
}
}
public
String
getJdbcPingQuery
()
{
public
String
getJdbcPingQuery
()
{
return
jdbcPingQuery
;
return
jdbcPingQuery
;
}
}
public
ProcessEngineConfiguration
setJdbcPingQuery
(
String
jdbcPingQuery
)
{
public
ProcessEngineConfiguration
setJdbcPingQuery
(
String
jdbcPingQuery
)
{
this
.
jdbcPingQuery
=
jdbcPingQuery
;
this
.
jdbcPingQuery
=
jdbcPingQuery
;
return
this
;
return
this
;
}
}
public
int
getJdbcPingConnectionNotUsedFor
()
{
public
int
getJdbcPingConnectionNotUsedFor
()
{
return
jdbcPingConnectionNotUsedFor
;
return
jdbcPingConnectionNotUsedFor
;
}
}
public
ProcessEngineConfiguration
setJdbcPingConnectionNotUsedFor
(
int
jdbcPingNotUsedFor
)
{
public
ProcessEngineConfiguration
setJdbcPingConnectionNotUsedFor
(
int
jdbcPingNotUsedFor
)
{
this
.
jdbcPingConnectionNotUsedFor
=
jdbcPingNotUsedFor
;
this
.
jdbcPingConnectionNotUsedFor
=
jdbcPingNotUsedFor
;
return
this
;
return
this
;
}
}
public
boolean
isJobExecutorActivate
()
{
public
boolean
isJobExecutorActivate
()
{
return
jobExecutorActivate
;
return
jobExecutorActivate
;
}
}
public
ProcessEngineConfiguration
setJobExecutorActivate
(
boolean
jobExecutorActivate
)
{
public
ProcessEngineConfiguration
setJobExecutorActivate
(
boolean
jobExecutorActivate
)
{
this
.
jobExecutorActivate
=
jobExecutorActivate
;
this
.
jobExecutorActivate
=
jobExecutorActivate
;
return
this
;
return
this
;
}
}
public
ClassLoader
getClassLoader
()
{
public
ClassLoader
getClassLoader
()
{
return
classLoader
;
return
classLoader
;
}
}
public
ProcessEngineConfiguration
setClassLoader
(
ClassLoader
classLoader
)
{
public
ProcessEngineConfiguration
setClassLoader
(
ClassLoader
classLoader
)
{
this
.
classLoader
=
classLoader
;
this
.
classLoader
=
classLoader
;
return
this
;
return
this
;
}
}
public
Object
getJpaEntityManagerFactory
()
{
public
Object
getJpaEntityManagerFactory
()
{
return
jpaEntityManagerFactory
;
return
jpaEntityManagerFactory
;
}
}
public
ProcessEngineConfiguration
setJpaEntityManagerFactory
(
Object
jpaEntityManagerFactory
)
{
public
ProcessEngineConfiguration
setJpaEntityManagerFactory
(
Object
jpaEntityManagerFactory
)
{
this
.
jpaEntityManagerFactory
=
jpaEntityManagerFactory
;
this
.
jpaEntityManagerFactory
=
jpaEntityManagerFactory
;
return
this
;
return
this
;
}
}
public
boolean
isJpaHandleTransaction
()
{
public
boolean
isJpaHandleTransaction
()
{
return
jpaHandleTransaction
;
return
jpaHandleTransaction
;
}
}
public
ProcessEngineConfiguration
setJpaHandleTransaction
(
boolean
jpaHandleTransaction
)
{
public
ProcessEngineConfiguration
setJpaHandleTransaction
(
boolean
jpaHandleTransaction
)
{
this
.
jpaHandleTransaction
=
jpaHandleTransaction
;
this
.
jpaHandleTransaction
=
jpaHandleTransaction
;
return
this
;
return
this
;
}
}
public
boolean
isJpaCloseEntityManager
()
{
public
boolean
isJpaCloseEntityManager
()
{
return
jpaCloseEntityManager
;
return
jpaCloseEntityManager
;
}
}
public
ProcessEngineConfiguration
setJpaCloseEntityManager
(
boolean
jpaCloseEntityManager
)
{
public
ProcessEngineConfiguration
setJpaCloseEntityManager
(
boolean
jpaCloseEntityManager
)
{
this
.
jpaCloseEntityManager
=
jpaCloseEntityManager
;
this
.
jpaCloseEntityManager
=
jpaCloseEntityManager
;
return
this
;
return
this
;
...
...
modules/activiti-engine/src/main/java/org/activiti/engine/impl/cfg/ProcessEngineConfigurationImpl.java
浏览文件 @
b13e7c66
此差异已折叠。
点击以展开。
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录