-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
allow to customize ProcessEngineConfiguration
- Loading branch information
1 parent
0d3c137
commit 65b9132
Showing
6 changed files
with
82 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
...fo/novatec/micronaut/camunda/bpm/feature/DefaultProcessEngineConfigurationCustomizer.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package info.novatec.micronaut.camunda.bpm.feature; | ||
|
||
import org.camunda.bpm.engine.ProcessEngineConfiguration; | ||
|
||
import javax.annotation.Nonnull; | ||
import javax.inject.Singleton; | ||
|
||
@Singleton | ||
public class DefaultProcessEngineConfigurationCustomizer implements ProcessEngineConfigurationCustomizer { | ||
|
||
@Override | ||
public void customize(@Nonnull ProcessEngineConfiguration configuration) { | ||
// no customization | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
...java/info/novatec/micronaut/camunda/bpm/feature/ProcessEngineConfigurationCustomizer.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package info.novatec.micronaut.camunda.bpm.feature; | ||
|
||
import org.camunda.bpm.engine.ProcessEngineConfiguration; | ||
|
||
import javax.annotation.Nonnull; | ||
|
||
/** | ||
* @author Lukasz Frankowski | ||
*/ | ||
@FunctionalInterface | ||
interface ProcessEngineConfigurationCustomizer { | ||
|
||
void customize(@Nonnull ProcessEngineConfiguration configuration); | ||
|
||
} |
19 changes: 19 additions & 0 deletions
19
.../novatec/micronaut/camunda/bpm/feature/MicronautProcessEngineConfigurationCustomizer.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package info.novatec.micronaut.camunda.bpm.feature; | ||
|
||
import io.micronaut.context.annotation.Replaces; | ||
import org.camunda.bpm.engine.ProcessEngineConfiguration; | ||
|
||
import javax.annotation.Nonnull; | ||
import javax.inject.Singleton; | ||
|
||
@Singleton | ||
@Replaces(DefaultProcessEngineConfigurationCustomizer.class) | ||
public class MicronautProcessEngineConfigurationCustomizer implements ProcessEngineConfigurationCustomizer { | ||
|
||
public static final String PROCESS_ENGINE_NAME = "CustomizedEngine"; | ||
|
||
@Override | ||
public void customize(@Nonnull ProcessEngineConfiguration configuration) { | ||
configuration.setProcessEngineName(PROCESS_ENGINE_NAME); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters