You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Needle is an ultra-lightweight dependency injection framework for Java, similar to Spring. It simplifies the management of dependencies in your application, making your code more modular, testable, and maintainable.
8
8
9
-
## Features
9
+
## ✨ Features
10
10
11
11
-**Lightweight**: Minimal overhead, designed to be fast and efficient.
12
12
-**Annotation-based**: Use simple annotations to define dependencies.
13
13
-**Automatic Dependency Resolution**: Automatically resolves and injects dependencies.
14
14
-**Integration**: Easily integrates with other frameworks and libraries.
15
15
16
-
## Usage
16
+
## 🚀 Usage
17
17
18
-
### Main class Example
18
+
### 📘 Main class Example
19
19
20
20
```java
21
21
publicclassMain {
@@ -25,7 +25,7 @@ public class Main {
25
25
}
26
26
```
27
27
28
-
### Class components Example
28
+
### 📙 Class components Example
29
29
30
30
```java
31
31
@Component
@@ -34,7 +34,7 @@ public class ExampleService {
34
34
privateString name;
35
35
}
36
36
```
37
-
### Method components Example
37
+
### 📗 Method components Example
38
38
39
39
```java
40
40
@Component
@@ -48,7 +48,7 @@ public class SampleConfig {
48
48
49
49
```
50
50
51
-
### Defining Dependencies
51
+
### 📕 Defining Dependencies
52
52
53
53
```java
54
54
@@ -72,7 +72,7 @@ public class SampleService {
72
72
}
73
73
```
74
74
75
-
## Installation
75
+
## 📦 Installation
76
76
77
77
Add the following dependency to your Maven project:
78
78
@@ -84,11 +84,11 @@ Add the following dependency to your Maven project:
84
84
</dependency>
85
85
```
86
86
87
-
## Contributing
87
+
## 🤝 Contributing
88
88
89
89
Contributions are welcome! Please feel free to submit a Pull Request.
90
90
91
-
## License
91
+
## 📄 License
92
92
93
93
This project is licensed under the MIT License - see the LICENSE file for details.
0 commit comments