Generate Driven Adapter
The generateDrivenAdapter | gda
task will generate a module in Infrastructure layer, this task has one required
parameter type
.
Whether you'll use generic one also parameter name
is required.
gradle generateDrivenAdapter --type=[drivenAdapterType]
gradle gda --type [drivenAdapterType]
Reference for drivenAdapterType | Name | Additional Options |
---|---|---|
generic | Empty Driven Adapter | --name [name] |
asynceventbus | Async Event Bus | --eda [true-false] --tech [rabbitmq-kafka-rabbitmq,kafka] Default: rabbitmq |
binstash | Bin Stash | |
cognitotokenprovider | Generador de token de cognito | |
dynamodb | Dynamo DB adapter | |
jpa | JPA Repository | --secret [true-false] |
kms | AWS Key Management Service | |
mongodb | Mongo Repository | --secret [true-false] |
mq | JMS MQ Client to send messages | |
r2dbc | R2dbc Postgresql Client | |
redis | Redis | --mode [template-repository] --secret [true-false] |
restconsumer | Rest Client Consumer | --url [url] --from-swagger swagger.yaml |
rsocket | RSocket Requester | |
s3 | AWS Simple Storage Service | |
secrets | Secrets Manager Bancolombia | --secrets-backend [backend] Valid options for backend are "aws_secrets_manager" (default) or "vault". |
sqs | SQS message sender |
This task will generate something like that:
π¦infrastructure
β£ πdriven-adapters
β β πjpa-repository
β β β£ πsrc
β β β β£ πmain
β β β β β πjava
β β β β β β π[package]
β β β β β β β πjpa
β β β β β β β β£ πconfig
β β β β β β β β β πDBSecret.java
β β β β β β β β£ πhelper
β β β β β β β β β πAdapterOperations.java
β β β β β β β β£ πJPARepository.java
β β β β β β β β πJPARepositoryAdapter.java
β β β β πtest
β β β β β πjava
β β β β β β π[package]
β β β β β β β πjpa
β β β β β β β β πhelper
β β β πbuild.gradle