Skip to content

Commit

Permalink
reactive
Browse files Browse the repository at this point in the history
  • Loading branch information
tanghanzheng committed Oct 9, 2023
1 parent 9bda3b5 commit 54ca409
Show file tree
Hide file tree
Showing 16 changed files with 138 additions and 0 deletions.
2 changes: 2 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ allprojects {
set('MyBatisPlusVersion', '3.5.2')
set('NettyVersion', '4.1.85.Final')
set('RedissonVersion', '3.22.1')
set('ReactorVersion', '3.4.25')
set('Rxjava3Version', '3.1.8')
set('XnioVersion', '3.8.6.Final')
set('VueVersion', '2.6.11')
set('VueResourceVersion', '1.5.1')
Expand Down
2 changes: 2 additions & 0 deletions concept-reactive/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
apply from: 'version.gradle'
version ConceptReactiveVersion
15 changes: 15 additions & 0 deletions concept-reactive/concept-reactive-core/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
apply from: '../../allprojects.gradle'

apply from: '../version.gradle'
version ConceptReactiveVersion

ext {
set('publishName', 'Reactive Core')
set('publishDescription', 'Reactive Core')
}

dependencies {

}

apply from: '../../publish.gradle'
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package com.github.linyuzai.reactive.core.concept;

public interface ReactiveCollection {

interface Factory {

}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package com.github.linyuzai.reactive.core.concept;

public interface ReactiveConcept {

ReactiveObject.Factory objectFactory();

ReactiveCollection.Factory collectionFactory();
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package com.github.linyuzai.reactive.core.concept;

public interface ReactiveObject {

interface Factory {

}
}
16 changes: 16 additions & 0 deletions concept-reactive/concept-reactive-reactor/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
apply from: '../../allprojects.gradle'

apply from: '../version.gradle'
version ConceptReactiveVersion

ext {
set('publishName', 'Reactive Reactor')
set('publishDescription', 'Reactive 4 Reactor')
}

dependencies {
compileOnly "io.projectreactor:reactor-core:${ReactorVersion}"
compileOnly project(':concept-reactive:concept-reactive-core')
}

apply from: '../../publish.gradle'
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
package com.github.linyuzai.reactive.reactor.concept;

import com.github.linyuzai.reactive.core.concept.ReactiveCollection;

public class ReactorCollection implements ReactiveCollection {
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
package com.github.linyuzai.reactive.reactor.concept;

import com.github.linyuzai.reactive.core.concept.ReactiveCollection;
import com.github.linyuzai.reactive.core.concept.ReactiveConcept;
import com.github.linyuzai.reactive.core.concept.ReactiveObject;
import reactor.core.publisher.Mono;

public class ReactorConcept implements ReactiveConcept {

@Override
public ReactiveObject.Factory objectFactory() {
return new ReactorObject.MonoFactory();
}

@Override
public ReactiveCollection.Factory collectionFactory() {
return null;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package com.github.linyuzai.reactive.reactor.concept;

import com.github.linyuzai.reactive.core.concept.ReactiveObject;
import reactor.core.publisher.Mono;

public class ReactorObject<T> implements ReactiveObject {

private Mono<T> mono;

public static class MonoFactory implements Factory {

}
}
16 changes: 16 additions & 0 deletions concept-reactive/concept-reactive-rxjava3/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
apply from: '../../allprojects.gradle'

apply from: '../version.gradle'
version ConceptReactiveVersion

ext {
set('publishName', 'Reactive Rxjava3')
set('publishDescription', 'Reactive 4 Rxjava3')
}

dependencies {
compileOnly "io.reactivex.rxjava3:${Rxjava3Version}"
compileOnly project(':concept-reactive:concept-reactive-core')
}

apply from: '../../publish.gradle'
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package com.github.linyuzai.reactive.rxjava3.concept;

import com.github.linyuzai.reactive.core.concept.ReactiveCollection;

public class RxJava3Collection implements ReactiveCollection {


}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
package com.github.linyuzai.reactive.rxjava3.concept;

import com.github.linyuzai.reactive.core.concept.ReactiveConcept;

public class RxJava3Concept implements ReactiveConcept {
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
package com.github.linyuzai.reactive.rxjava3.concept;

import com.github.linyuzai.reactive.core.concept.ReactiveObject;

public class RxJava3Object implements ReactiveObject {
}
1 change: 1 addition & 0 deletions concept-reactive/version.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ext.'ConceptReactiveVersion' = '1.0.0'
4 changes: 4 additions & 0 deletions settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ include 'concept-plugin:concept-plugin-jar'
include 'concept-plugin:concept-plugin-spring-boot-starter'
include 'concept-properties-refresh'
include 'concept-properties-refresh:concept-properties-refresh-core'
include 'concept-reactive'
include 'concept-reactive:concept-reactive-core'
include 'concept-reactive:concept-reactive-reactor'
include 'concept-reactive:concept-reactive-rxjava3'
include 'concept-router'
include 'concept-router:concept-router-core'
include 'concept-router:concept-router-loadbalancer'
Expand Down

0 comments on commit 54ca409

Please sign in to comment.