use of com.microsoft.azure.serverless.functions.annotation.FunctionName in project azure-gradle-plugins by lenala.
the class AnnotationHandlerImpl method generateConfigurations.
@Override
public Map<String, FunctionConfiguration> generateConfigurations(final Set<Method> methods) throws Exception {
final Map<String, FunctionConfiguration> configMap = new HashMap<>();
for (final Method method : methods) {
final FunctionName functionAnnotation = method.getAnnotation(FunctionName.class);
final String functionName = functionAnnotation.value();
validateFunctionName(configMap.keySet(), functionName);
logger.quiet("Starting processing function : " + functionName);
configMap.put(functionName, generateConfiguration(method));
}
return configMap;
}
Aggregations