Add Home
28
Home.md
Normal file
28
Home.md
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
# Conflux
|
||||||
|
|
||||||
|
**Conflux** is a lightweight, type-safe, generic application-wide context for Java, providing strongly-typed key/value storage, listener support, and thread-safe sharing of data. It helps coordinate shared state across otherwise decoupled classes.
|
||||||
|
|
||||||
|
## Features
|
||||||
|
|
||||||
|
- Strongly typed keys
|
||||||
|
- Type-consistent storage
|
||||||
|
- Change notifications via weakly-referenced listeners
|
||||||
|
- Thread-safe and simple to use
|
||||||
|
- Singleton style with enum
|
||||||
|
|
||||||
|
## Quick Link
|
||||||
|
|
||||||
|
- [[Programming Guide]]
|
||||||
|
- [[API Reference]]
|
||||||
|
- [[Design and Architecture]]
|
||||||
|
- [[FAQ]]
|
||||||
|
- [[Contributing]]
|
||||||
|
|
||||||
|
## Example
|
||||||
|
|
||||||
|
```java
|
||||||
|
Key<Integer> counterKey = new Key<>("counter", Integer.class);
|
||||||
|
Ctx.INSTANCE.put(counterKey, 42);
|
||||||
|
````
|
||||||
|
|
||||||
|
Enjoy consistent, simple context management!
|
||||||
Reference in New Issue
Block a user