Skip to content

Commit

Permalink
add marker interface to open components, fix #888 (#891)
Browse files Browse the repository at this point in the history
  • Loading branch information
zambrovski authored Oct 18, 2023
1 parent 1b0b6cc commit e1795d8
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
1 change: 1 addition & 0 deletions bom/parent/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -466,6 +466,7 @@
<option>all-open:annotation=org.axonframework.eventhandling.EventHandler</option>
<option>all-open:annotation=org.axonframework.queryhandling.QueryHandler</option>
<option>all-open:annotation=com.tngtech.jgiven.integration.spring.JGivenStage</option>
<option>all-open:annotation=io.holunda.polyflow.view.ComponentLike</option>
</pluginOptions>
</configuration>
<executions>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@ package io.holunda.polyflow.view.mongo

import io.holunda.camunda.taskpool.api.business.*
import io.holunda.camunda.taskpool.api.task.*
import io.holunda.polyflow.view.DataEntry
import io.holunda.polyflow.view.Task
import io.holunda.polyflow.view.TaskWithDataEntries
import io.holunda.polyflow.view.*
import io.holunda.polyflow.view.filter.toCriteria
import io.holunda.polyflow.view.mongo.data.DataEntryChangeTracker
import io.holunda.polyflow.view.mongo.data.DataEntryRepository
Expand All @@ -13,7 +11,6 @@ import io.holunda.polyflow.view.mongo.task.*
import io.holunda.polyflow.view.query.FilterQuery
import io.holunda.polyflow.view.query.data.*
import io.holunda.polyflow.view.query.task.*
import io.holunda.polyflow.view.task
import jakarta.annotation.PostConstruct
import jakarta.annotation.PreDestroy
import mu.KLogging
Expand Down Expand Up @@ -80,6 +77,7 @@ class MongoViewServiceConfiguration {
/**
* Mongo-based projection.
*/
@ComponentLike
@ProcessingGroup(MongoViewService.PROCESSING_GROUP)
class MongoViewService(
private val properties: TaskPoolMongoViewProperties,
Expand Down
8 changes: 8 additions & 0 deletions view/view-api/src/main/kotlin/ComponentLike.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package io.holunda.polyflow.view

/**
* Marker annotation to open the classes in Kotlin.
*/
@MustBeDocumented
@Target(AnnotationTarget.CLASS, AnnotationTarget.ANNOTATION_CLASS)
annotation class ComponentLike

0 comments on commit e1795d8

Please sign in to comment.