Skip to content

Commit 28433d9

Browse files
author
Daniel Bustamante Ospina
committed
Fix parameter name
1 parent dd102b1 commit 28433d9

File tree

3 files changed

+6
-8
lines changed

3 files changed

+6
-8
lines changed

async/async-commons-api/src/main/java/org/reactivecommons/async/api/HandlerRegistry.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,12 @@ public <T> HandlerRegistry handleCommand(String commandName, CommandHandler<T> f
4747
}
4848

4949
@SuppressWarnings("unchecked")
50-
public <T, R> HandlerRegistry serveQuery(String commandId, QueryHandler<T, R> handler){
51-
return serveQuery(commandId, handler, inferGenericParameterType(handler));
50+
public <T, R> HandlerRegistry serveQuery(String resource, QueryHandler<T, R> handler){
51+
return serveQuery(resource, handler, inferGenericParameterType(handler));
5252
}
5353

54-
public <T, R> HandlerRegistry serveQuery(String commandId, QueryHandler<T, R> handler, Class<R> queryClass){
55-
handlers.add(new RegisteredQueryHandler<>(commandId, handler, queryClass));
54+
public <T, R> HandlerRegistry serveQuery(String resource, QueryHandler<T, R> handler, Class<R> queryClass){
55+
handlers.add(new RegisteredQueryHandler<>(resource, handler, queryClass));
5656
return this;
5757
}
5858

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
version=0.0.2-beta1
1+
version=0.0.3-beta1
22
springBootVersion=2.1.0.RELEASE
33
springCloudVersion=Greenwich.M1

main.gradle

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ subprojects {
44
apply plugin: 'io.spring.dependency-management'
55

66
sourceCompatibility = JavaVersion.VERSION_1_8
7-
7+
88
task sourcesJar(type: Jar, dependsOn: classes) {
99
classifier = 'sources'
1010
from sourceSets.main.allSource
@@ -23,7 +23,6 @@ subprojects {
2323

2424
repositories {
2525
mavenCentral()
26-
maven { url "https://dl.bintray.com/sofka/clean-domain-commons" }
2726
maven { url "https://repo.spring.io/snapshot" }
2827
maven { url "https://repo.spring.io/milestone" }
2928
}
@@ -44,7 +43,6 @@ subprojects {
4443
dependencyManagement {
4544
imports {
4645
mavenBom "org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}"
47-
// mavenBom "org.springframework.cloud:spring-cloud-dependencies:${springCloudVersion}"
4846
}
4947
}
5048
}

0 commit comments

Comments
 (0)