This file contains hidden or 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
| import java.lang.annotation.*; | |
| /** | |
| * Annotation used to mark beans that are client-specific implementations. | |
| * Beans annotated with this annotation are automatically discovered and | |
| * registered | |
| * by the {@link ClientRegistry} for client-based bean lookup. | |
| * <p> | |
| * This annotation enables a multi-tenant bean architecture where multiple | |
| * implementations of the same bean interface can coexist, each mapped to one |
This file contains hidden or 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
| @Target(ElementType.TYPE) | |
| @Retention(RetentionPolicy.RUNTIME) | |
| @Service | |
| public @interface DocumentGenerator { | |
| DocumentGenerationEntityType value(); | |
| } |
This file contains hidden or 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
| abstract class Utils { | |
| /** | |
| * The compose method composes a function operation with the provided value. | |
| * <br/> | |
| * It applies the operation to the value if the value is not null and returns the result. | |
| */ | |
| public static <V, R> R compose(V value, Function<V, R> operation) { | |
| if (Objects.isNull(value) || Objects.isNull(operation)) { |
This file contains hidden or 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
| #!/bin/bash | |
| # Exit on error | |
| set -e | |
| # Ensure PR number is provided | |
| if [ -z "$1" ]; then | |
| echo "Usage: $0 <PR_NUMBER>" | |
| exit 1 | |
| fi |
This file contains hidden or 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
| import 'package:dio/dio.dart'; | |
| import 'package:flutter/foundation.dart'; | |
| import 'dio_error_util.dart'; | |
| typedef ResponseDecoderCallBack<DecoderType> = DecoderType Function(dynamic); | |
| class DioClient { | |
| final Dio dio; | |
| DioClient(this.dio); |