Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Development #6

Open
wants to merge 24 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
127f527
fix(all): Clearifying codebase
rasnesakam Oct 14, 2022
4cdac4b
Added doc comment for DepIn
rasnesakam Oct 15, 2022
8346fc8
fix(DepIn): Sytax error fixed
rasnesakam Oct 15, 2022
2afdcc1
gradle configurations
rasnesakam Jan 2, 2023
4bd1a73
:(
rasnesakam Jan 2, 2023
46494ce
removed idea file
rasnesakam Jan 2, 2023
5c5704c
folder name changed to emakas from experimentalsoftwares
rasnesakam Jan 2, 2023
66ad8c5
folder name changed "experimentalsoftwares -> emakas"
rasnesakam Jan 2, 2023
3db06a6
Renamed package names to emakas from experimentalsoftwares
rasnesakam Jan 29, 2023
d591548
Example classes splitted into cases
rasnesakam Jan 29, 2023
83d9ae7
Deleted xml file. Not Supported yet
rasnesakam Jan 29, 2023
9e23062
Added more configuretions to map
rasnesakam Jan 29, 2023
43ffa1d
Added new cases and classes for testing
rasnesakam Jan 29, 2023
bda88e1
Deleted depInJava for renaming
rasnesakam Jan 29, 2023
4a8531c
Aslında çok şey oldu da yanlış komit attım
rasnesakam Jan 29, 2023
3cd13ca
Updated docstring
rasnesakam Jan 30, 2023
fdd4dd5
Updated docstrings
rasnesakam Jan 30, 2023
794ad2d
Deleted unnecessary method
rasnesakam Jan 30, 2023
ccedf9b
Changed instantiator method reference
rasnesakam Jan 30, 2023
a3c1ba9
Changed method signature
rasnesakam Jan 30, 2023
c93ebf2
ignored bin folder
rasnesakam Aug 25, 2023
25d7e29
i don't know what is this
rasnesakam Aug 26, 2023
654616f
Added reference documentation for ClassMap
rasnesakam Aug 26, 2023
54f5ebb
Merge branch 'development' of https://github.com/rasnesakam/DepIn int…
rasnesakam Aug 26, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.gradle
build
bin
.idea
10 changes: 10 additions & 0 deletions .gitpod.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# This configuration file was automatically generated by Gitpod.
# Please adjust to your needs (see https://www.gitpod.io/docs/introduction/learn-gitpod/gitpod-yaml)
# and commit this file to your remote git repository to share the goodness with others.

# Learn more from ready-to-use templates: https://www.gitpod.io/docs/introduction/getting-started/quickstart

tasks:
- init: ./gradlew build


3 changes: 0 additions & 3 deletions .idea/.gitignore

This file was deleted.

1 change: 0 additions & 1 deletion .idea/.name

This file was deleted.

6 changes: 0 additions & 6 deletions .idea/compiler.xml

This file was deleted.

21 changes: 0 additions & 21 deletions .idea/gradle.xml

This file was deleted.

20 changes: 0 additions & 20 deletions .idea/jarRepositories.xml

This file was deleted.

7 changes: 0 additions & 7 deletions .idea/misc.xml

This file was deleted.

124 changes: 0 additions & 124 deletions .idea/uiDesigner.xml

This file was deleted.

6 changes: 0 additions & 6 deletions .idea/vcs.xml

This file was deleted.

5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,11 @@ We can similarly inject our dependencies directly with fields.
We just use `withFields(Map<String,Object> setters)` chain method.
This is inject the spesific fields that named in map with the corresponding object arguments

## Advanced
## Advanced Use Cases
There is better ways to use this library.
Firstly, let's checkout `ClassMaps` and `ClassMap` classes. You can check it out them from [ClassMaps doc] and [ClassMap doc].
`ClassMaps` instances holds list of several `ClassMap` instances.
`ClassMaps` instances holds bunch of several `ClassMap` instances.
`ClassMap` instances are using for store datas of instance of the class that will be injected.
`ClassMap` instances have some fields like `id`, `ref`, `target`,`args`,`fields` and `setters`.
Library uses these fields to identify classes and their dependencies.

Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ java {
}
}

group 'org.example'
group 'org.emakas'
version '1.0-alpha'

repositories {
Expand Down
56 changes: 56 additions & 0 deletions docs/references/ClassMaps.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
# ClassMaps

ClassMaps is an container class for identifying classes and their dependencies.

see also:
* <a href="/docs/references/ClassMap.md">ClassMap</a>
## Constructor
<table>
<tr>
<td> Constructor </td>
<td> Desctiption </td>
</tr>
<tr>
<td>
<code>ClassMaps()</code>
</td>
<td>
Initializes empty instance
</td>
</tr>
</table>

## Public methods
<table>
<tr>
<td> Method </td>
<td> Desctiption </td>
</tr>
<tr>
<td>
<code>void addClassMap(<a href="/docs/references/ClassMap.md">ClassMap</a> classMap)</code>
</td>
<td>
Adds <a href="/docs/references/ClassMap.md">ClassMap</a> entity to the map.<br>
When tool need to search for class,<br>
It will search in this map too.
</td>
</tr>
<tr>
<td><code>
List&lt;ClassMap&gt; getClassMapsBy(@Nullable Predicate&lt;ClassMap&gt;)
</code></td>
<td>
Gets selected maps for processing. If <code>ppredicate</code> given as <code>null</code>,<br>
Function will return all of the list.
</td>
</tr>
<tr>
<td><code>
Optional&lt;ClassMap&gt; getClassMap(@NotNull Predicate&lt;ClassMap&gt;)
</code></td>
<td>
Gets one selected map for processing if exists.
</td>
</tr>
</table>
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.3-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5.1-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Empty file modified gradlew
100644 → 100755
Empty file.
Loading