class ApplicationContextListener: Any
Fields
Name | Description |
---|---|
val LOG: LoggerFactory.getLogger(this.javaClass.name)
|
|
val mavenHome: String
|
|
val mavenRepository: String
|
|
val assignmentsRootLocation: String
|
|
val assignmentRepository: AssignmentRepository
|
|
val assignmentTagRepository: AssignmentTagRepository
|
|
val assignmentTestMethodRepository: AssignmentTestMethodRepository
|
|
val assigneeRepository: AssigneeRepository
|
|
val submissionRepository: SubmissionRepository
|
|
val submissionReportRepository: SubmissionReportRepository
|
|
val buildReportRepository: BuildReportRepository
|
|
val jUnitReportRepository: JUnitReportRepository
|
|
val authorRepository: AuthorRepository
|
|
val projectGroupRepository: ProjectGroupRepository
|
|
val gitClient: GitClient
|
|
val resourceLoader: ResourceLoader
|
Constructors
<init>
constructor(assignmentRepository: AssignmentRepository, assignmentTagRepository: AssignmentTagRepository, assignmentTestMethodRepository: AssignmentTestMethodRepository, assigneeRepository: AssigneeRepository, submissionRepository: SubmissionRepository, submissionReportRepository: SubmissionReportRepository, buildReportRepository: BuildReportRepository, jUnitReportRepository: JUnitReportRepository, authorRepository: AuthorRepository, projectGroupRepository: ProjectGroupRepository, gitClient: GitClient, resourceLoader: ResourceLoader)
Parameters
Name | Description |
---|---|
assignmentRepository: AssignmentRepository
|
|
assignmentTagRepository: AssignmentTagRepository
|
|
assignmentTestMethodRepository: AssignmentTestMethodRepository
|
|
assigneeRepository: AssigneeRepository
|
|
submissionRepository: SubmissionRepository
|
|
submissionReportRepository: SubmissionReportRepository
|
|
buildReportRepository: BuildReportRepository
|
|
jUnitReportRepository: JUnitReportRepository
|
|
authorRepository: AuthorRepository
|
|
projectGroupRepository: ProjectGroupRepository
|
|
gitClient: GitClient
|
|
resourceLoader: ResourceLoader
|
Methods
onApplicationEvent
fun onApplicationEvent(event: ContextRefreshedEvent)
Parameters
Name | Description |
---|---|
event: ContextRefreshedEvent
|
ReturnValue
Name | Description |
---|---|
Unit
|
CompanionObject
ApplicationContextListener
class ApplicationContextListener: Any
Fields
Name | Description |
---|---|
const sampleJavaAssignmentPrivateKey: String
|
|
const sampleJavaAssignmentPublicKey: String
|
This function is executed when DP starts running.
If the assignment repository (i.e. database) is empty, this function will create some "fake data" (e.g. students, teachers, and submissions from both) in order to have a "in-memory" database that allows testing the system.