Comments (3)
-
I will need to check this, but since the component finders are working on bytecode, and because of (generics) erasure, this might be the reason why both the
SomethingUpdateDbConsumer
andOtherthingUpdateDbConsumer
are being identified as the sameConsumer
component. -
The pre-built Spring component finder only has some relatively simple rules for identifying components and their interfaces, based upon the typical naming and coding conventions. With your repositories, the component finder strategy is only looking for interfaces that are assignable to
CrudRepository
, which will be why your implementation classes are being ignored.
For both issues, you may be better off either (1) writing your own component finder strategy, which implements the rules based upon how your codebase is structured or (2) use a different set of strategies based upon naming conventions, etc. This perhaps isn't the answer that you wanted, but FWIW, this is exactly why the client library is open source ... every codebase is structured differently, and the rules for identifying components in one codebase are usually different to others.
Hope that helps.
from java.
Wow, thanks for the lightning response.
I'm not upset by that answer in the slightest. I definitely figured my issues around the repository stuff were going to necessitate a custom finder strategy. Yay open source!
I was thinking that it might be useful for the built in spring component finder to avoid trying to use interfaces that have nothing to do with spring components. Do you see any merit in that?
from java.
I ended up creating an almost clone of SpringComponentComponentFinderStrategy that just added the following check right before it tests for an interface:
// We don't really want to name things after generic internals such as java.util.function.Consumer
if (interfaceType.getCanonicalName().startsWith("java.")) {
continue;
}
from java.
Related Issues (20)
- Views are not created automatically if non-English characters are used in software systems' names HOT 2
- Allow Relationship views to contain URLs, which then get used as links on dynamic views and sequence diagrams HOT 1
- Allow hiding of system boundary for container view
- Support for parent by template HOT 3
- Support for "MADR" ADR format
- Relationships in deploymentGroups
- Support a parse method with an explicit include directory HOT 5
- Add Support for MADR created by log4brains HOT 2
- Implied relationships not configured correctly when DSL workspace extends a JSON workspace
- DSL: Add support for end of line comments HOT 4
- Render components of multiple containers
- DSL, CLI: A container/component view includes all elements, filter approach does not work as-is
- Image view from SVG not working HOT 1
- Importing docs fails on files without extension HOT 3
- DSL parser does not seem to handle curly brackets balance
- Constants in DSL can be defined multiple times HOT 2
- Serialization to JSON is not deterministic HOT 2
- Plantuml renderer: Group and system of same name yields puml code resulting in error
- C4PlantUMLExporter not following C4-PlantUML best practices with c4plantuml.tags true HOT 1
- How do you extend a deploymentNode?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from java.