Class TenantAspect


  • @Configuration
    public class TenantAspect
    extends Object
    Default aspect for tenant settings during messaging communication.
    Author:
    Roger.Steuernagel
    See Also:
    Aspect
    • Constructor Detail

      • TenantAspect

        public TenantAspect​(TransactionContext transactionContext,
                            com.totvs.tjf.core.json.JsonSchemaValidationService jsonSchemaValidationService,
                            com.fasterxml.jackson.databind.ObjectMapper mapper,
                            @Nullable
                            com.totvs.tjf.migration.FlywayMigrationProperties flywayMigrationProperties,
                            @Nullable
                            com.totvs.tjf.core.migration.SchemaService schemaService,
                            @Nullable
                            com.totvs.tjf.core.utils.SchemaUtils schemaUtils,
                            MessagingProperties messagingProperties,
                            IgnoreMessageComponent ignoreComponent)
    • Method Detail

      • totvsMessage

        public void totvsMessage​(org.aspectj.lang.ProceedingJoinPoint joinPoint)
                          throws Throwable
        Aspect used in stream listeners that receive a TOTVSMessage. Defines some important information, such as TransactionContext, tenant and locale information. Check and notify EventListenerSupport. Validate Json schema.
        Throws:
        Throwable
        See Also:
        JoinPoint, TOTVSMessage, JsonSchemaValidationService