com.netgrif.application.engine.startup.RunnerController.groovy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of application-engine Show documentation
Show all versions of application-engine Show documentation
System provides workflow management functions including user, role and data management.
package com.netgrif.application.engine.startup
import org.springframework.stereotype.Component
@Component
class RunnerController {
private List order = [
ElasticsearchRunner,
MongoDbRunner,
StorageRunner,
RuleEngineRunner,
DefaultRoleRunner,
AnonymousRoleRunner,
AuthorityRunner,
SystemUserRunner,
UriRunner,
FunctionsCacheRunner,
FilterRunner,
GroupRunner,
DefaultFiltersRunner,
ImpersonationRunner,
DashboardRunner,
SuperCreator,
FlushSessionsRunner,
MailRunner,
PostalCodeImporter,
DemoRunner,
QuartzSchedulerRunner,
PdfRunner,
FinisherRunnerSuperCreator,
FinisherRunner,
]
protected List getOrderList() {
return order
}
int getOrder(Class aClass) {
int runnerOrder = getOrderList().findIndexOf { it == aClass }
if (runnerOrder == -1) {
throw new IllegalArgumentException("Class ${aClass?.simpleName} is not registered in ${this.class.simpleName}")
}
return runnerOrder
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy