forked from Linyuzai/concept
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
tanghanzheng
committed
Oct 9, 2023
1 parent
9bda3b5
commit 54ca409
Showing
16 changed files
with
138 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
apply from: 'version.gradle' | ||
version ConceptReactiveVersion |
This file contains 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
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' |
8 changes: 8 additions & 0 deletions
8
...tive-core/src/main/java/com/github/linyuzai/reactive/core/concept/ReactiveCollection.java
This file contains 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
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 { | ||
|
||
} | ||
} |
8 changes: 8 additions & 0 deletions
8
...eactive-core/src/main/java/com/github/linyuzai/reactive/core/concept/ReactiveConcept.java
This file contains 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
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(); | ||
} |
8 changes: 8 additions & 0 deletions
8
...reactive-core/src/main/java/com/github/linyuzai/reactive/core/concept/ReactiveObject.java
This file contains 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
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 { | ||
|
||
} | ||
} |
This file contains 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
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' |
6 changes: 6 additions & 0 deletions
6
...reactor/src/main/java/com/github/linyuzai/reactive/reactor/concept/ReactorCollection.java
This file contains 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
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 { | ||
} |
19 changes: 19 additions & 0 deletions
19
...ve-reactor/src/main/java/com/github/linyuzai/reactive/reactor/concept/ReactorConcept.java
This file contains 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
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; | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
...ive-reactor/src/main/java/com/github/linyuzai/reactive/reactor/concept/ReactorObject.java
This file contains 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
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 { | ||
|
||
} | ||
} |
This file contains 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
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' |
8 changes: 8 additions & 0 deletions
8
...rxjava3/src/main/java/com/github/linyuzai/reactive/rxjava3/concept/RxJava3Collection.java
This file contains 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
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 { | ||
|
||
|
||
} |
6 changes: 6 additions & 0 deletions
6
...ve-rxjava3/src/main/java/com/github/linyuzai/reactive/rxjava3/concept/RxJava3Concept.java
This file contains 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
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 { | ||
} |
6 changes: 6 additions & 0 deletions
6
...ive-rxjava3/src/main/java/com/github/linyuzai/reactive/rxjava3/concept/RxJava3Object.java
This file contains 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
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 { | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
ext.'ConceptReactiveVersion' = '1.0.0' |
This file contains 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