-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#2 add factoryVisibility and factoryMethodName, use javax.inject.Prov…
…ider in factory for for injected fields
- Loading branch information
Showing
7 changed files
with
159 additions
and
52 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
-Drevision=0.2.3 | ||
-Drevision=0.3.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
12 changes: 9 additions & 3 deletions
12
...or/src/main/java/com/github/stcarolas/enrichedbeans/processor/AssistingFactoryConfig.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 |
---|---|---|
@@ -1,10 +1,16 @@ | ||
package com.github.stcarolas.enrichedbeans.processor; | ||
package com.github.stcarolas.enrichedbeans.processor; | ||
|
||
import com.squareup.javapoet.TypeName; | ||
import org.immutables.value.Value; | ||
|
||
import io.vavr.collection.Seq; | ||
import lombok.RequiredArgsConstructor; | ||
|
||
@Value.Immutable | ||
public interface AssistingFactoryConfig { | ||
String factoryMethodName(); | ||
String factoryClassName(); | ||
String factoryMethodName(); | ||
TypeName targetType(); | ||
Seq<Field> injectingFields(); | ||
Seq<Field> instanceFields(); | ||
FactoryVisibility visibility(); | ||
} |
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
5 changes: 5 additions & 0 deletions
5
processor/src/main/java/com/github/stcarolas/enrichedbeans/processor/FactoryVisibility.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,5 @@ | ||
package com.github.stcarolas.enrichedbeans.processor; | ||
|
||
public enum FactoryVisibility { | ||
PUBLIC, PACKAGE; | ||
} |
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